mirror of
https://github.com/bestnite/igdb-database.git
synced 2025-04-26 21:25:54 +08:00
u
This commit is contained in:
parent
5bd2627d5e
commit
19c174c5b6
@ -57,6 +57,10 @@ func SaveGame(game *model.Game) error {
|
||||
func ConvertGame(game *pb.Game) (*model.Game, error) {
|
||||
res := &model.Game{}
|
||||
|
||||
if game == nil {
|
||||
return nil, fmt.Errorf("game is nil")
|
||||
}
|
||||
|
||||
res.Id = game.Id
|
||||
|
||||
ageRatingsIds := make([]uint64, 0, len(game.AgeRatings))
|
||||
|
Loading…
x
Reference in New Issue
Block a user