core: export record.pdomain by default

This commit is contained in:
undefined committed 2021-05-28 23:38:07 +08:00
1 parent 040f8a197b
commit 8852aa149b
9 files changed
+16 -16

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.28.3",
"version": "2.28.4",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",
@@ -30,7 +30,7 @@
"lru-cache": "^6.0.0",
"minio": "7.0.17",
"moment-timezone": "^0.5.33",
"mongodb": "^3.6.8",
"mongodb": "^3.6.9",
"nodemailer": "^6.6.1",
"p-queue": "^6.6.2",
"reflect-metadata": "^0.1.13",
@@ -42,7 +42,7 @@
"@types/adm-zip": "^0.4.34",
"@types/fs-extra": "^9.0.11",
"@types/js-yaml": "^4.0.1",
"@types/koa": "^2.13.1",
"@types/koa": "^2.13.2",
"@types/koa-compress": "^4.0.1",
"@types/koa-router": "^7.4.2",
"@types/koa-static-cache": "^5.1.0",
-1
View File
@@ -266,7 +266,6 @@ export class ProblemModel {
const range = { $in: parsed[task].map((i) => i.pid) };
const q: any = { $or: [{ docId: range }, { pid: range }] };
if (!getHidden) q.hidden = false;
console.log(task, parsed[task]);
tasks.push(document.getMulti(task, document.TYPE_PROBLEM, q).project(buildProjection(projection)).toArray());
}
const pdocs = flatten(await Promise.all(tasks));
+1
View File
@@ -22,6 +22,7 @@ class RecordModel {
'_id', 'score', 'time', 'memory', 'lang',
'uid', 'pid', 'rejudged', 'hidden', 'progress',
'contest', 'effective', 'judger', 'judgeAt', 'status',
'pdomain',
];
static async submissionPriority(uid: number, base: number = 0) {