This commit is contained in:
undefined committed 2020-07-26 12:14:51 +08:00
1 parent ee78271a84
commit d3deeaeb96
10 files changed
+60 -87

No files matched your search

+4 -1
View File
@@ -91,7 +91,10 @@ class RecordRejudgeHandler extends Handler {
async post(domainId: string, rid: ObjectID) {
this.checkPerm(PERM.PERM_REJUDGE);
const rdoc = await record.get(domainId, rid);
if (rdoc) await record.rejudge(domainId, rid);
if (rdoc) {
await record.reset(domainId, rid, true);
await record.judge(domainId, rid);
}
this.back();
}
}