mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: improve daily task performance
This commit is contained in:
3 files changed
+17
-24
No files matched your search
@@ -506,7 +506,6 @@ export class ProblemSubmitHandler extends ProblemDetailHandler {
|
||||
if (!pretest) {
|
||||
await Promise.all([
|
||||
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'),
|
||||
tid && contest.updateStatus(domainId, tid, this.user._id, rid, this.pdoc.docId),
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user