fix: Set '@typescript-eslint/return-await' rule to 'always' for node code (no-changelog) (#8363)

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Tomi Turtiainen
2024-01-17 17:08:50 +02:00
committed by GitHub
parent 2eb829a6b4
commit 9a1cc56806
369 changed files with 1041 additions and 928 deletions

View File

@@ -1058,7 +1058,7 @@ export class Workflow {
webhookData,
);
return webhookFn.call(thisArgs);
return await webhookFn.call(thisArgs);
}
/**
@@ -1143,7 +1143,7 @@ export class Workflow {
return triggerResponse;
}
// In all other modes simply start the trigger
return nodeType.trigger.call(triggerFunctions);
return await nodeType.trigger.call(triggerFunctions);
}
/**
@@ -1172,7 +1172,7 @@ export class Workflow {
});
}
return nodeType.poll.call(pollFunctions);
return await nodeType.poll.call(pollFunctions);
}
/**
@@ -1208,7 +1208,9 @@ export class Workflow {
webhookData,
closeFunctions,
);
return nodeType instanceof Node ? nodeType.webhook(context) : nodeType.webhook.call(context);
return nodeType instanceof Node
? await nodeType.webhook(context)
: await nodeType.webhook.call(context);
}
/**
@@ -1322,7 +1324,7 @@ export class Workflow {
: await nodeType.execute.call(context);
const closeFunctionsResults = await Promise.allSettled(
closeFunctions.map(async (fn) => fn()),
closeFunctions.map(async (fn) => await fn()),
);
const closingErrors = closeFunctionsResults