core: 修复p_files.get_links.pdoc缺失导致无法下载测试数据的问题

This commit is contained in:
undefined committed 2021-02-02 17:40:15 +08:00
1 parent c87256c715
commit 6cfd226e1e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "2.17.8", "version": "2.17.9",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "dist/loader.js", "main": "dist/loader.js",
"typings": "dist/loader.d.ts", "typings": "dist/loader.d.ts",
+1 -1
View File
@@ -429,7 +429,7 @@ export class ProblemFilesHandler extends ProblemDetailHandler {
file, false, isJudge ? 'judge' : 'user', file, false, isJudge ? 'judge' : 'user',
); );
} }
this.response.body = { links }; this.response.body.links = links;
} }
@post('filename', Types.String) @post('filename', Types.String)