mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
ci: Remove unnecessary async/await, enable await-thenable linting rule (no-changelog) (#8076)
## Summary We accidentally made some functions `async` in https://github.com/n8n-io/n8n/pull/7846 This PR reverts that change. ## Review / Merge checklist - [x] PR title and summary are descriptive.
This commit is contained in:
committed by
GitHub
parent
a7ffed245a
commit
464b565283
@@ -276,7 +276,7 @@ export class ActiveWorkflowRunner implements IWebhookManager {
|
||||
* Get the IDs of active workflows from storage.
|
||||
*/
|
||||
async allActiveInStorage(options?: { user: User; scope: Scope | Scope[] }) {
|
||||
const isFullAccess = !options?.user || (await options.user.hasGlobalScope(options.scope));
|
||||
const isFullAccess = !options?.user || options.user.hasGlobalScope(options.scope);
|
||||
|
||||
const activationErrors = await this.activationErrorsService.getAll();
|
||||
|
||||
@@ -291,7 +291,7 @@ export class ActiveWorkflowRunner implements IWebhookManager {
|
||||
.filter((workflowId) => !activationErrors[workflowId]);
|
||||
}
|
||||
|
||||
const where = await whereClause({
|
||||
const where = whereClause({
|
||||
user: options.user,
|
||||
globalScope: 'workflow:list',
|
||||
entityType: 'workflow',
|
||||
|
||||
Reference in New Issue
Block a user