core: fix addProgress

This commit is contained in:
undefined committed 2022-02-10 14:22:34 +08:00
1 parent 8810ccd285
commit f8f4d82c0a
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ export async function next(body: JudgeResultBody) {
if (body.time !== undefined) $set.time = body.time;
if (body.memory !== undefined) $set.memory = body.memory;
if (body.progress !== undefined) $set.progress = body.progress;
rdoc = await record.update(rdoc.domainId, body.rid, $set, $push, {}, body.addProgress ? { progress: body.progress } : {});
rdoc = await record.update(rdoc.domainId, body.rid, $set, $push, {}, body.addProgress ? { progress: body.addProgress } : {});
bus.broadcast('record/change', rdoc!, $set, $push);
}