mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Fix data decryption on credentials import (#7560)
Due to a change, during the credentials import command, the core's Credential object is being called through its prototype. This caused the Credential's cipher variable to not be set, thus no cipher service being available during import. This fix catches this edge case and provides a fix.
This commit is contained in:
committed by
GitHub
parent
774d521dbd
commit
b350568505
@@ -181,6 +181,10 @@ export function affixRoleToSaveCredential(role: Role) {
|
||||
saveCredential(credentialPayload, { user, role });
|
||||
}
|
||||
|
||||
export async function getAllCredentials() {
|
||||
return Db.collections.Credentials.find();
|
||||
}
|
||||
|
||||
// ----------------------------------
|
||||
// user creation
|
||||
// ----------------------------------
|
||||
|
||||
Reference in New Issue
Block a user