judge: fix warnings

This commit is contained in:
undefined committed 2022-09-06 13:02:46 +08:00
1 parent 7cc4461930
commit 3b81c72846
1 file changed
+1 -1
+1 -1
View File
@@ -101,7 +101,7 @@ export async function postJudge(rdoc: RecordDoc) {
status: STATUS.STATUS_ACCEPTED,
contest: { $ne: new ObjectID('0'.repeat(24)) },
}).project({ _id: 1, contest: 1 }).toArray();
const priority = await record.submissionPriority(this.user._id, -rdocs.length * 5 - 50);
const priority = await record.submissionPriority(rdoc.uid, -rdocs.length * 5 - 50);
await Promise.all(rdocs.map(
(r) => record.judge(rdoc.domainId, r._id, priority, r.contest ? { detail: false } : {}, { hackRejudge: input }),
));