core: contest team (#1183)

This commit is contained in:
Baoshuo authored and GitHub committed 2026-09-16 01:05:44 +08:00
1 parent 238b1263bf
commit 78e898fdfc
22 files changed
+934 -96

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ Language ${SettingModel.langs[lang].display} (${lang})
await Promise.all([
ProblemModel.inc(domainId, this.pdoc.docId, 'nSubmit', 1),
DomainModel.incUserInDomain(domainId, this.user._id, 'nSubmit'),
ContestModel.updateStatus(domainId, this.tdoc.docId, this.user._id, rid, this.pdoc.docId),
ContestModel.updateStatus(domainId, this.tdoc.docId, this.team ?? this.user._id, rid, this.pdoc.docId),
]);
return { rid };
}