core: fix contest_balloon

This commit is contained in:
undefined committed 2023-11-05 20:49:54 +08:00
1 parent 4add381be1
commit fd4fb18db2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "4.9.26",
"version": "4.9.27",
"bin": "bin/hydrooj.js",
"main": "src/plugin-api",
"module": "src/plugin-api",
+1 -1
View File
@@ -712,7 +712,7 @@ export class ContestBalloonHandler extends ContestManagementBaseHandler {
...todo ? { sent: { $exists: false } } : {},
...(!this.tdoc.lockAt || this.user.hasPerm(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD))
? {} : { _id: { $lt: this.tdoc.lockAt } },
}).sort({ _id: -1 }).project({ uid: 1 }).toArray();
}).sort({ _id: -1 }).toArray();
const uids = bdocs.map((i) => i.uid).concat(bdocs.filter((i) => i.sent).map((i) => i.sent));
this.response.body = {
tdoc: this.tdoc,