perf(core): Make user controller tests faster (no-changelog) (#7819)

Before: `17.949 s`
After: `3.886 s`

Followup to:
https://github.com/n8n-io/n8n/pull/7797#discussion_r1404148034
This commit is contained in:
Iván Ovejero
2023-11-27 11:56:06 +01:00
committed by GitHub
parent 83086af247
commit 75a5807c72
4 changed files with 337 additions and 318 deletions

View File

@@ -117,3 +117,6 @@ export async function createWorkflowWithTrigger(
export async function getAllWorkflows() {
return Container.get(WorkflowRepository).find();
}
export const getWorkflowById = async (id: string) =>
Container.get(WorkflowRepository).findOneBy({ id });