From 056f853eff3c2f2155c8f396ce50203f8c22f77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 5 Apr 2023 18:09:52 +0200 Subject: [PATCH] check only if `restartExecutionId` is defined --- packages/core/src/WorkflowExecute.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index 9e1dd8e914a387..4031a51698deee 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -746,8 +746,8 @@ export class WorkflowExecute { const returnPromise = (async () => { try { - const { executionId, restartExecutionId } = this.additionalData; - if (restartExecutionId !== executionId) { + const { restartExecutionId } = this.additionalData; + if (!restartExecutionId) { await this.executeHook('workflowExecuteBefore', [workflow]); } } catch (error) {