diff --git a/packages/hydrooj/src/handler/contest.ts b/packages/hydrooj/src/handler/contest.ts index e86ae68c2..8f95c93cb 100644 --- a/packages/hydrooj/src/handler/contest.ts +++ b/packages/hydrooj/src/handler/contest.ts @@ -576,7 +576,7 @@ export class ContestBalloonHandler extends ContestManagementBaseHandler { const bdocs = await contest.getMultiBalloon(domainId, tid, { ...todo ? { sent: { $exists: false } } : {}, ...(!this.tdoc.lockAt || this.user.hasPerm(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD)) - ? {} : { _id: { $lt: this.tdoc.lockAt } }, + ? {} : { _id: { $lt: Time.getObjectID(this.tdoc.lockAt) } }, }).sort({ _id: -1 }).toArray(); const uids = bdocs.map((i) => i.uid).concat(bdocs.filter((i) => i.sent).map((i) => i.sent)); this.response.body = {