fix nil game info in webhooks body
This commit is contained in:
parent
ed12329be7
commit
f887f804b8
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user