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