mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 17:38:19 +08:00
core: problemStat: also calc psdoc
This commit is contained in:
1 parent
cc1faba709
commit
8a114abb55
4 files changed
+28
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user