mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -55,17 +55,17 @@ export async function shareCredentialWithUsers(credential: CredentialsEntity, us
|
||||
roleId: role?.id,
|
||||
}),
|
||||
);
|
||||
return Container.get(SharedCredentialsRepository).save(newSharedCredentials);
|
||||
return await Container.get(SharedCredentialsRepository).save(newSharedCredentials);
|
||||
}
|
||||
|
||||
export function affixRoleToSaveCredential(role: Role) {
|
||||
return async (credentialPayload: CredentialPayload, { user }: { user: User }) =>
|
||||
saveCredential(credentialPayload, { user, role });
|
||||
await saveCredential(credentialPayload, { user, role });
|
||||
}
|
||||
|
||||
export async function getAllCredentials() {
|
||||
return Container.get(CredentialsRepository).find();
|
||||
return await Container.get(CredentialsRepository).find();
|
||||
}
|
||||
|
||||
export const getCredentialById = async (id: string) =>
|
||||
Container.get(CredentialsRepository).findOneBy({ id });
|
||||
await Container.get(CredentialsRepository).findOneBy({ id });
|
||||
|
||||
Reference in New Issue
Block a user