mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat: Upgrade nodes-base package to use modern tsconfig.json (no-changelog) (#16884)
This commit is contained in:
@@ -37,7 +37,7 @@ export class JsTaskRunnerSandbox {
|
||||
|
||||
return executionResult.ok
|
||||
? executionResult.result
|
||||
: this.throwExecutionError(executionResult.error);
|
||||
: this.throwExecutionError('error' in executionResult ? executionResult.error : {});
|
||||
}
|
||||
|
||||
async runCodeForEachItem(numInputItems: number): Promise<INodeExecutionData[]> {
|
||||
@@ -64,7 +64,7 @@ export class JsTaskRunnerSandbox {
|
||||
);
|
||||
|
||||
if (!executionResult.ok) {
|
||||
return this.throwExecutionError(executionResult.error);
|
||||
return this.throwExecutionError('error' in executionResult ? executionResult.error : {});
|
||||
}
|
||||
|
||||
executionResults = executionResults.concat(executionResult.result);
|
||||
|
||||
Reference in New Issue
Block a user