mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: 修复contest-scoreboard不进行排序的问题
This commit is contained in:
1 parent
2e8f3e42cd
commit
ccc8ee23f2
5 files changed
+9
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user