diff --git a/packages/hydrooj/package.json b/packages/hydrooj/package.json index 0c6ecc466..a46c8dd3e 100644 --- a/packages/hydrooj/package.json +++ b/packages/hydrooj/package.json @@ -1,6 +1,6 @@ { "name": "hydrooj", - "version": "2.31.1", + "version": "2.31.2", "bin": "bin/hydrooj.js", "main": "src/loader", "module": "src/loader", diff --git a/packages/hydrooj/src/handler/record.ts b/packages/hydrooj/src/handler/record.ts index 0915f1784..a999390e2 100644 --- a/packages/hydrooj/src/handler/record.ts +++ b/packages/hydrooj/src/handler/record.ts @@ -234,7 +234,7 @@ class RecordMainConnectionHandler extends ConnectionHandler { user.getById(this.domainId, rdoc.uid), problem.get(rdoc.pdomain, rdoc.pid), ]); - const tdoc = this.tid ? await contest.get(this.domainId, new ObjectID(this.tid)) : null; + const tdoc = this.tid ? await contest.get(this.domainId, new ObjectID(this.tid), -1) : null; if (pdoc && !rdoc.contest) { if (pdoc.hidden && !this.user.own(pdoc) && !this.user.hasPerm(PERM.PERM_VIEW_PROBLEM_HIDDEN)) pdoc = null; if (!this.user.hasPerm(PERM.PERM_VIEW_PROBLEM)) pdoc = null;