From 95903269b252729ee6573a5b607d98fa0223cd9a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 21 Mar 2025 11:37:48 +0900 Subject: fix(frontend): fix submission status flickering --- backend/api/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/api/handler.go') 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, -- cgit v1.2.3-70-g09d2