From f887f804b8fc60792eeee48029d44589a99caa87 Mon Sep 17 00:00:00 2001 From: nite07 Date: Sun, 17 Nov 2024 14:55:09 +0800 Subject: [PATCH] fix nil game info in webhooks body --- db/game.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/game.go b/db/game.go index 16100e3..e6df174 100644 --- a/db/game.go +++ b/db/game.go @@ -744,7 +744,7 @@ func GetGameInfoByGameItemID(id primitive.ObjectID) (*model.GameInfo, error) { return nil, err } if len(res) == 0 { - return nil, nil + return nil, errors.New("game info not found") } return res[0], nil }