fix nil game info in webhooks body

This commit is contained in:
Nite07 2024-11-17 14:55:09 +08:00
parent ed12329be7
commit f887f804b8

View File

@ -744,7 +744,7 @@ func GetGameInfoByGameItemID(id primitive.ObjectID) (*model.GameInfo, error) {
return nil, err return nil, err
} }
if len(res) == 0 { if len(res) == 0 {
return nil, nil return nil, errors.New("game info not found")
} }
return res[0], nil return res[0], nil
} }