mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
utils: add STATUS_SHORT_TEXTS
This commit is contained in:
1 parent
218a14b91e
commit
625478ac3a
5 files changed
+18
-3
No files matched your search
@@ -38,6 +38,7 @@ async function _postJudge(rdoc: RecordDoc) {
|
||||
await Promise.all([
|
||||
record.update(rdoc.domainId, rdoc._id, { effective: true }),
|
||||
problem.edit(pdoc.domainId, pdoc.docId, { difficulty }),
|
||||
problem.inc(pdoc.domainId, pdoc.docId, `stats.${builtin.STATUS_SHORT_TEXTS[rdoc.status]}`, 1),
|
||||
]);
|
||||
await bus.serial('record/judge', rdoc, updated);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user