mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: fix warnings
This commit is contained in:
1 parent
7cc4461930
commit
3b81c72846
1 file changed
+1
-1
@@ -101,7 +101,7 @@ export async function postJudge(rdoc: RecordDoc) {
|
|||||||
status: STATUS.STATUS_ACCEPTED,
|
status: STATUS.STATUS_ACCEPTED,
|
||||||
contest: { $ne: new ObjectID('0'.repeat(24)) },
|
contest: { $ne: new ObjectID('0'.repeat(24)) },
|
||||||
}).project({ _id: 1, contest: 1 }).toArray();
|
}).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(
|
await Promise.all(rdocs.map(
|
||||||
(r) => record.judge(rdoc.domainId, r._id, priority, r.contest ? { detail: false } : {}, { hackRejudge: input }),
|
(r) => record.judge(rdoc.domainId, r._id, priority, r.contest ? { detail: false } : {}, { hackRejudge: input }),
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in new issue
Block a user