aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-21 11:37:48 +0900
committernsfisis <nsfisis@gmail.com>2025-03-21 11:37:48 +0900
commit95903269b252729ee6573a5b607d98fa0223cd9a (patch)
treecfed9b4320cb5c0f83364fbe8e5517b59bb10d73 /backend/api
parent4b58aed45bb2356786958b4ce10b62ede26dfdb3 (diff)
downloadiosdc-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.go2
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,