fix: settlePlan创建时,检查check处理数组情况时 ,pipeline使用不正确

This commit is contained in:
wkj 2025-11-24 19:23:48 +08:00
parent 4e15d169b8
commit 551f128b0f
3 changed files with 11 additions and 4 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);
}
}