core: problemStat: also calc psdoc

This commit is contained in:
undefined committed 2021-04-07 19:40:57 +08:00
1 parent cc1faba709
commit 8a114abb55
4 files changed
+28 -3

No files matched your search

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