diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-21 11:37:48 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-21 11:37:48 +0900 |
| commit | 95903269b252729ee6573a5b607d98fa0223cd9a (patch) | |
| tree | cfed9b4320cb5c0f83364fbe8e5517b59bb10d73 /backend/api | |
| parent | 4b58aed45bb2356786958b4ce10b62ede26dfdb3 (diff) | |
| download | iosdc-japan-2025-albatross-95903269b252729ee6573a5b607d98fa0223cd9a.tar.gz iosdc-japan-2025-albatross-95903269b252729ee6573a5b607d98fa0223cd9a.tar.zst iosdc-japan-2025-albatross-95903269b252729ee6573a5b607d98fa0223cd9a.zip | |
fix(frontend): fix submission status flickering
Diffstat (limited to 'backend/api')
| -rw-r--r-- | backend/api/handler.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/api/handler.go b/backend/api/handler.go index 04dbd5d..39fa0c2 100644 --- a/backend/api/handler.go +++ b/backend/api/handler.go @@ -292,7 +292,7 @@ func (h *Handler) PostGamePlaySubmit(ctx context.Context, request PostGamePlaySu code := request.Body.Code codeSize := h.hub.CalcCodeSize(code) // TODO: transaction - err := h.q.UpdateCode(ctx, db.UpdateCodeParams{ + err := h.q.UpdateCodeAndStatus(ctx, db.UpdateCodeAndStatusParams{ GameID: int32(gameID), UserID: int32(userID), Code: code, |
