utils: add STATUS_SHORT_TEXTS

This commit is contained in:
undefined committed 2021-05-17 01:01:26 +08:00
1 parent 218a14b91e
commit 625478ac3a
5 files changed
+18 -3

No files matched your search

+1
View File
@@ -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);
}