mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(core): Assign properties.success earlier to set executionStatus correctly (#5773)
assign properties.success earlier
This commit is contained in:
parent
e67ad29625
commit
d33a1ac1e9
|
@ -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