mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Don't create additional nodeExecuteBefore message (#14958)
This commit is contained in:
@@ -54,7 +54,15 @@ export function WorkflowExecuteAdditionalData(
|
||||
): IWorkflowExecuteAdditionalData {
|
||||
const hooks = new ExecutionLifecycleHooks('trigger', '1', mock());
|
||||
hooks.addHandler('workflowExecuteAfter', (fullRunData) => waitPromise.resolve(fullRunData));
|
||||
return mock<IWorkflowExecuteAdditionalData>({ hooks, currentNodeExecutionIndex: 0 });
|
||||
return mock<IWorkflowExecuteAdditionalData>({
|
||||
hooks,
|
||||
currentNodeExecutionIndex: 0,
|
||||
// Not setting this to undefined would set it to a mock which would trigger
|
||||
// conditions in the WorkflowExecute which only check if a property exists,
|
||||
// e.g. `if (!this.additionalData.restartExecutionId)`. This would for
|
||||
// example skip running the `workflowExecuteBefore` hook in the tests.
|
||||
restartExecutionId: undefined,
|
||||
});
|
||||
}
|
||||
|
||||
const preparePinData = (pinData: IDataObject) => {
|
||||
|
||||
Reference in New Issue
Block a user