mirror of
https://github.com/arnaucube/gogame.git
synced 2026-02-07 11:36:40 +01:00
add get planet data
This commit is contained in:
@@ -49,7 +49,10 @@ func (srv Service) Register(name, password, email string) (*models.User, error)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
_, _, err = srv.gamesrv.CreatePlanet(user.Id)
|
||||
_, planet, err := srv.gamesrv.CreatePlanet(user.Id)
|
||||
|
||||
user.Planets = append(user.Planets, planet.Id)
|
||||
user.StoreInDb()
|
||||
|
||||
return user, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user