Skip to content

Commit c2c8ee2

Browse files
authored
core: fix balloon display for contest manager (#991)
1 parent c7117ef commit c2c8ee2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/hydrooj/src/handler/contest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ export class ContestBalloonHandler extends ContestManagementBaseHandler {
576576
const bdocs = await contest.getMultiBalloon(domainId, tid, {
577577
...todo ? { sent: { $exists: false } } : {},
578578
...(!this.tdoc.lockAt || this.user.hasPerm(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD))
579-
? {} : { _id: { $lt: this.tdoc.lockAt } },
579+
? {} : { _id: { $lt: Time.getObjectID(this.tdoc.lockAt) } },
580580
}).sort({ _id: -1 }).toArray();
581581
const uids = bdocs.map((i) => i.uid).concat(bdocs.filter((i) => i.sent).map((i) => i.sent));
582582
this.response.body = {

0 commit comments

Comments
 (0)