mirror of
https://github.com/bestnite/igdb-database.git
synced 2025-06-16 09:53:19 +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) {
|
func ConvertGame(game *pb.Game) (*model.Game, error) {
|
||||||
res := &model.Game{}
|
res := &model.Game{}
|
||||||
|
|
||||||
|
if game == nil {
|
||||||
|
return nil, fmt.Errorf("game is nil")
|
||||||
|
}
|
||||||
|
|
||||||
res.Id = game.Id
|
res.Id = game.Id
|
||||||
|
|
||||||
ageRatingsIds := make([]uint64, 0, len(game.AgeRatings))
|
ageRatingsIds := make([]uint64, 0, len(game.AgeRatings))
|
||||||
|
Reference in New Issue
Block a user