mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
perf: Improve workflows list performance (#5021)
* spike: Improve workflow list performance * fix: Correcting override behavior * refactor: Remove unnecessary promise * remove duplicate code * remove the `async` that is breaking the listings page Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -125,17 +125,6 @@ export class CredentialsService {
|
||||
return Db.collections.SharedCredentials.findOne(options);
|
||||
}
|
||||
|
||||
static createCredentialsFromCredentialsEntity(
|
||||
credential: CredentialsEntity,
|
||||
encrypt = false,
|
||||
): Credentials {
|
||||
const { id, name, type, nodesAccess, data } = credential;
|
||||
if (encrypt) {
|
||||
return new Credentials({ id: null, name }, type, nodesAccess);
|
||||
}
|
||||
return new Credentials({ id: id.toString(), name }, type, nodesAccess, data);
|
||||
}
|
||||
|
||||
static async prepareCreateData(
|
||||
data: CredentialRequest.CredentialProperties,
|
||||
): Promise<CredentialsEntity> {
|
||||
|
||||
Reference in New Issue
Block a user