mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: bug fix
This commit is contained in:
1 parent
849576f071
commit
04f20dbdd9
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.2.31",
|
"version": "3.2.32",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -304,7 +304,7 @@ export class ProblemModel {
|
|||||||
for (const pid of pids) {
|
for (const pid of pids) {
|
||||||
if (!(r[pid] || l[pid])) {
|
if (!(r[pid] || l[pid])) {
|
||||||
if (doThrow) throw new ProblemNotFoundError(domainId, pid);
|
if (doThrow) throw new ProblemNotFoundError(domainId, pid);
|
||||||
else r[pid] = { ...ProblemModel.default, domainId, pid: pid.toString() };
|
if (!indexByDocIdOnly) r[pid] = { ...ProblemModel.default, domainId, pid: pid.toString() };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user