fix: settlePlan创建时,检查check处理数组情况时 ,pipeline使用不正确
This commit is contained in:
parent
4e15d169b8
commit
551f128b0f
|
|
@ -58,7 +58,9 @@ const checkers = [
|
|||
});
|
||||
};
|
||||
if (data instanceof Array) {
|
||||
return pipeline(...data.map(checkfn));
|
||||
return pipeline(...data.map((ele) => {
|
||||
return () => checkfn(ele);
|
||||
}));
|
||||
}
|
||||
else {
|
||||
return checkfn(data);
|
||||
|
|
|
|||
|
|
@ -60,7 +60,9 @@ const checkers = [
|
|||
});
|
||||
};
|
||||
if (data instanceof Array) {
|
||||
return (0, executor_1.pipeline)(...data.map(checkfn));
|
||||
return (0, executor_1.pipeline)(...data.map((ele) => {
|
||||
return () => checkfn(ele);
|
||||
}));
|
||||
}
|
||||
else {
|
||||
return checkfn(data);
|
||||
|
|
|
|||
|
|
@ -67,8 +67,11 @@ const checkers: Checker<EntityDict, 'settlePlan', RuntimeCxt>[] = [
|
|||
)
|
||||
}
|
||||
if (data instanceof Array) {
|
||||
return pipeline(...data.map(checkfn))
|
||||
} else {
|
||||
return pipeline(...data.map((ele) => {
|
||||
return () => checkfn(ele);
|
||||
}));
|
||||
}
|
||||
else {
|
||||
return checkfn(data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue