mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor: Add dto for POST /credentials endpoint (#13306)
This commit is contained in:
@@ -23,6 +23,13 @@ export async function encryptCredentialData(
|
||||
return Object.assign(credential, coreCredential.getDataToSave());
|
||||
}
|
||||
|
||||
export async function decryptCredentialData(credential: ICredentialsDb): Promise<unknown> {
|
||||
const { createCredentialsFromCredentialsEntity } = await import('@/credentials-helper');
|
||||
const coreCredential = createCredentialsFromCredentialsEntity(credential);
|
||||
|
||||
return coreCredential.getData();
|
||||
}
|
||||
|
||||
const emptyAttributes = {
|
||||
name: 'test',
|
||||
type: 'test',
|
||||
|
||||
Reference in New Issue
Block a user