mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
test(core): Fix multiple parallel private key checks (no-changelog) (#9012)
This commit is contained in:
parent
e47e4bf671
commit
ae3f164c5c
|
@ -46,6 +46,11 @@ export class MoveSshKeysToDatabase1711390882123 implements ReversibleMigration {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!privateKey) {
|
||||||
|
logger.error(`[${migrationName}] No private key found, skipping`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const value = JSON.stringify({
|
const value = JSON.stringify({
|
||||||
encryptedPrivateKey: this.cipher.encrypt(privateKey),
|
encryptedPrivateKey: this.cipher.encrypt(privateKey),
|
||||||
publicKey,
|
publicKey,
|
||||||
|
|
Loading…
Reference in a new issue