mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
chore: Lintfix nodes-base (#16877)
This commit is contained in:
@@ -32,14 +32,14 @@ export type SnowflakeCredential = Pick<
|
||||
);
|
||||
|
||||
const extractPrivateKey = (credential: { privateKey: string; passphrase?: string }) => {
|
||||
const key = formatPrivateKey(credential.privateKey as string);
|
||||
const key = formatPrivateKey(credential.privateKey);
|
||||
|
||||
if (!credential.passphrase) return key;
|
||||
|
||||
const privateKeyObject = createPrivateKey({
|
||||
key,
|
||||
format: 'pem',
|
||||
passphrase: credential.passphrase as string,
|
||||
passphrase: credential.passphrase,
|
||||
});
|
||||
|
||||
return privateKeyObject.export({
|
||||
|
||||
Reference in New Issue
Block a user