mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix contest_balloon
This commit is contained in:
1 parent
4add381be1
commit
fd4fb18db2
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "4.9.26",
|
"version": "4.9.27",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/plugin-api",
|
"main": "src/plugin-api",
|
||||||
"module": "src/plugin-api",
|
"module": "src/plugin-api",
|
||||||
|
|||||||
@@ -712,7 +712,7 @@ export class ContestBalloonHandler extends ContestManagementBaseHandler {
|
|||||||
...todo ? { sent: { $exists: false } } : {},
|
...todo ? { sent: { $exists: false } } : {},
|
||||||
...(!this.tdoc.lockAt || this.user.hasPerm(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD))
|
...(!this.tdoc.lockAt || this.user.hasPerm(PERM.PERM_VIEW_CONTEST_HIDDEN_SCOREBOARD))
|
||||||
? {} : { _id: { $lt: this.tdoc.lockAt } },
|
? {} : { _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));
|
const uids = bdocs.map((i) => i.uid).concat(bdocs.filter((i) => i.sent).map((i) => i.sent));
|
||||||
this.response.body = {
|
this.response.body = {
|
||||||
tdoc: this.tdoc,
|
tdoc: this.tdoc,
|
||||||
|
|||||||
Reference in new issue
Block a user