mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
refactor(core): Remove a floating promise
This commit is contained in:
parent
3806d6355d
commit
eb766e2ced
|
@ -135,14 +135,25 @@ function executeErrorWorkflow(
|
|||
// make sure there are no possible security gaps
|
||||
return;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
getWorkflowOwner(workflowData.id).then((user) => {
|
||||
getWorkflowOwner(workflowData.id)
|
||||
.then((user) => {
|
||||
void WorkflowHelpers.executeErrorWorkflow(
|
||||
workflowData.settings!.errorWorkflow as string,
|
||||
workflowErrorData,
|
||||
user,
|
||||
);
|
||||
})
|
||||
.catch((error) => {
|
||||
Logger.error(
|
||||
`Could not execute ErrorWorkflow for execution ID ${this.executionId} because of error querying the workflow owner`,
|
||||
{
|
||||
executionId,
|
||||
errorWorkflowId: workflowData.settings!.errorWorkflow!.toString(),
|
||||
workflowId: workflowData.id,
|
||||
error,
|
||||
workflowErrorData,
|
||||
},
|
||||
);
|
||||
});
|
||||
} else if (
|
||||
mode !== 'error' &&
|
||||
|
|
Loading…
Reference in a new issue