mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -66,3 +66,6 @@ export function affixRoleToSaveCredential(role: Role) {
|
||||
export async function getAllCredentials() {
|
||||
return Container.get(CredentialsRepository).find();
|
||||
}
|
||||
|
||||
export const getCredentialById = async (id: string) =>
|
||||
Container.get(CredentialsRepository).findOneBy({ id });
|
||||
|
||||
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user