mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
core: fix script result display
This commit is contained in:
1 parent
e4c2f309c4
commit
8fb4a9b71f
2 files changed
+5
-5
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.39.5",
|
||||
"version": "2.39.6",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
@@ -23,7 +23,7 @@
|
||||
"graphql": "^15.6.0",
|
||||
"graphql-scalars": "^1.10.1",
|
||||
"js-yaml": "^4.1.0",
|
||||
"koa": "^2.13.1",
|
||||
"koa": "^2.13.3",
|
||||
"koa-body": "^4.2.0",
|
||||
"koa-compress": "^5.1.0",
|
||||
"koa-proxies": "^0.12.1",
|
||||
@@ -36,7 +36,7 @@
|
||||
"moment-timezone": "^0.5.33",
|
||||
"mongodb": "^3.7.1",
|
||||
"nanoid": "^3.1.25",
|
||||
"nodemailer": "^6.6.4",
|
||||
"nodemailer": "^6.6.5",
|
||||
"p-queue": "^7.1.0",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"serialize-javascript": "^6.0.0",
|
||||
@@ -53,7 +53,7 @@
|
||||
"@types/koa-compress": "^4.0.3",
|
||||
"@types/koa-router": "^7.4.4",
|
||||
"@types/koa-static-cache": "^5.1.1",
|
||||
"@types/lodash": "^4.14.173",
|
||||
"@types/lodash": "^4.14.174",
|
||||
"@types/lru-cache": "^5.1.1",
|
||||
"@types/mime-types": "^2.1.1",
|
||||
"@types/minio": "^7.0.10",
|
||||
|
||||
@@ -136,7 +136,7 @@ class RecordDetailHandler extends Handler {
|
||||
else pdoc = { ...problem.default, ...pdoc ? pick(pdoc, ['domainId', 'docId', 'pid']) : {} };
|
||||
}
|
||||
this.response.body = { udoc, rdoc, pdoc };
|
||||
if (rdoc.contest) {
|
||||
if (rdoc.contest && rdoc.contest.toHexString() !== '000000000000000000000000') {
|
||||
this.response.body.tdoc = await contest.get(domainId, rdoc.contest);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user