mirror of
https://github.com/bestnite/igdb-database.git
synced 2025-06-16 01:43:18 +08:00
u
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user