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:
कारतोफ्फेलस्क्रिप्ट™
2023-12-19 13:52:42 +01:00
committed by GitHub
parent a7ffed245a
commit 464b565283
27 changed files with 47 additions and 57 deletions

View File

@@ -21,7 +21,7 @@ export class WorkflowHistoryService {
private async getSharedWorkflow(user: User, workflowId: string): Promise<SharedWorkflow | null> {
return this.sharedWorkflowRepository.findOne({
where: {
...(!(await user.hasGlobalScope('workflow:read')) && { userId: user.id }),
...(!user.hasGlobalScope('workflow:read') && { userId: user.id }),
workflowId,
},
});