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);