mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: trigger recalcStatus when setScore
This commit is contained in:
1 file changed
+1
@@ -636,6 +636,7 @@ export class ContestManagementHandler extends ContestManagementBaseHandler {
|
|||||||
this.tdoc.score ||= {};
|
this.tdoc.score ||= {};
|
||||||
this.tdoc.score[pid] = score;
|
this.tdoc.score[pid] = score;
|
||||||
await contest.edit(domainId, this.tdoc.docId, { score: this.tdoc.score });
|
await contest.edit(domainId, this.tdoc.docId, { score: this.tdoc.score });
|
||||||
|
await contest.recalcStatus(domainId, this.tdoc.docId);
|
||||||
this.back();
|
this.back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user