aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api
diff options
context:
space:
mode:
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,