From 85c28d35707e6802e73e1750d967ede2a53658b2 Mon Sep 17 00:00:00 2001 From: t123yh Date: Sun, 27 Aug 2017 18:55:49 +0800 Subject: [PATCH] Fix a typo. --- models/problem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/problem.js b/models/problem.js index c5081c1..15df34c 100644 --- a/models/problem.js +++ b/models/problem.js @@ -500,7 +500,7 @@ class Problem extends Model { async resetSubmissionCount() { await syzoj.utils.lock(['Problem::resetSubmissionCount', this.id], async () => { this.submit_num = await JudgeState.count({ score: { $not: null }, problem_id: this.id, type: { $not: 1 } }); - this.ac_num = await JudgeState.count({ score: 100, problem_id: this.id, $type: { $not: 1 } }); + this.ac_num = await JudgeState.count({ score: 100, problem_id: this.id, type: { $not: 1 } }); await this.save(); }); }