core: 修复contest-scoreboard不进行排序的问题

This commit is contained in:
undefined committed 2020-11-08 02:58:02 +08:00
1 parent 2e8f3e42cd
commit ccc8ee23f2
5 files changed
+9 -2

No files matched your search

+1
View File
@@ -282,6 +282,7 @@ export class ProblemSubmitHandler extends ProblemDetailHandler {
const rid = await record.add(domainId, this.pdoc.docId, this.user._id, lang, code, true);
const [rdoc] = await Promise.all([
record.get(domainId, rid),
problem.inc(domainId, this.pdoc.docId, 'nSubmit', 1),
domain.incUserInDomain(domainId, this.user._id, 'nSubmit'),
]);
bus.boardcast('record/change', rdoc);