mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复一处类型错误
This commit is contained in:
1 parent
c0489546b8
commit
b5c1f41dd2
15 files changed
+44
-37
No files matched your search
@@ -177,6 +177,8 @@ class TrainingCreateHandler extends Handler {
|
||||
const pids = training.getPids({ dag });
|
||||
assert(pids.length, new ValidationError('dag'));
|
||||
const pdocs = await problem.getMulti(domainId, {
|
||||
// TODO
|
||||
// @ts-ignore
|
||||
$or: [{ docId: { $in: pids } }, { pid: { $in: pids } }],
|
||||
}).sort('_id', 1).toArray();
|
||||
const existPids = pdocs.map((pdoc) => pdoc.docId);
|
||||
@@ -238,6 +240,8 @@ class TrainingEditHandler extends Handler {
|
||||
const pdocs = await problem.getMulti(domainId, {
|
||||
$or: [
|
||||
{ docId: { $in: pids } },
|
||||
// TODO
|
||||
// @ts-ignore
|
||||
{ pid: { $in: pids } },
|
||||
],
|
||||
}).sort('_id', 1).toArray();
|
||||
|
||||
Reference in new issue
Block a user