core: improve daily task performance

This commit is contained in:
undefined committed 2024-10-01 09:09:01 +08:00
1 parent d95eb495ea
commit bccca2f5d2
3 files changed
+17 -24

No files matched your search

-1
View File
@@ -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),
]);