This commit is contained in:
nite 2025-04-08 16:11:29 +10:00
parent 5bd2627d5e
commit 19c174c5b6

View File

@ -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))