From 637a6d422622d7ec2bf4f4033507ca00b2938c48 Mon Sep 17 00:00:00 2001 From: hankeke303 Date: Mon, 13 May 2019 22:08:23 +0800 Subject: [PATCH] fix code unable to be judged in contests --- models/contest.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/models/contest.ts b/models/contest.ts index 1f279da..c5e986f 100644 --- a/models/contest.ts +++ b/models/contest.ts @@ -129,6 +129,7 @@ export default class Contest extends Model { contest_id: this.id, user_id: judge_state.user_id }); + await player.save(); } await player.updateScore(judge_state);