mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
fix: Retain execution data between partial executions (new flow) (#11828)
This commit is contained in:
@@ -281,7 +281,7 @@ function hookFunctionsPush(): IWorkflowExecuteHooks {
|
||||
},
|
||||
],
|
||||
workflowExecuteBefore: [
|
||||
async function (this: WorkflowHooks): Promise<void> {
|
||||
async function (this: WorkflowHooks, _workflow, data): Promise<void> {
|
||||
const { pushRef, executionId } = this;
|
||||
const { id: workflowId, name: workflowName } = this.workflowData;
|
||||
logger.debug('Executing hook (hookFunctionsPush)', {
|
||||
@@ -302,6 +302,9 @@ function hookFunctionsPush(): IWorkflowExecuteHooks {
|
||||
retryOf: this.retryOf,
|
||||
workflowId,
|
||||
workflowName,
|
||||
flattedRunData: data?.resultData.runData
|
||||
? stringify(data.resultData.runData)
|
||||
: stringify({}),
|
||||
},
|
||||
pushRef,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user