mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(core): Assign properties.success earlier to set executionStatus correctly
This commit is contained in:
parent
1663319c1f
commit
6c7772a0b3
|
@ -284,6 +284,8 @@ export class InternalHooks implements IInternalHooksClass {
|
|||
properties.user_id = userId;
|
||||
}
|
||||
|
||||
properties.success = !!runData?.finished;
|
||||
|
||||
let executionStatus: ExecutionStatus;
|
||||
if (runData?.status === 'crashed') {
|
||||
executionStatus = 'crashed';
|
||||
|
@ -295,7 +297,6 @@ export class InternalHooks implements IInternalHooksClass {
|
|||
|
||||
if (runData !== undefined) {
|
||||
properties.execution_mode = runData.mode;
|
||||
properties.success = !!runData.finished;
|
||||
properties.is_manual = runData.mode === 'manual';
|
||||
|
||||
let nodeGraphResult: INodesGraphResult | null = null;
|
||||
|
|
Loading…
Reference in a new issue