fix: settlePlanchecker中pipeline使用错误修正
This commit is contained in:
parent
f1f3bcbb6d
commit
4e15d169b8
|
|
@ -58,12 +58,10 @@ const checkers = [
|
|||
});
|
||||
};
|
||||
if (data instanceof Array) {
|
||||
for (const d of data) {
|
||||
checkfn(d);
|
||||
}
|
||||
return pipeline(...data.map(checkfn));
|
||||
}
|
||||
else {
|
||||
checkfn(data);
|
||||
return checkfn(data);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -60,12 +60,10 @@ const checkers = [
|
|||
});
|
||||
};
|
||||
if (data instanceof Array) {
|
||||
for (const d of data) {
|
||||
checkfn(d);
|
||||
}
|
||||
return (0, executor_1.pipeline)(...data.map(checkfn));
|
||||
}
|
||||
else {
|
||||
checkfn(data);
|
||||
return checkfn(data);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -67,11 +67,9 @@ const checkers: Checker<EntityDict, 'settlePlan', RuntimeCxt>[] = [
|
|||
)
|
||||
}
|
||||
if (data instanceof Array) {
|
||||
for (const d of data) {
|
||||
checkfn(d);
|
||||
}
|
||||
return pipeline(...data.map(checkfn))
|
||||
} else {
|
||||
checkfn(data);
|
||||
return checkfn(data);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue