test(core): Fix multiple parallel private key checks (no-changelog) (#9012)

This commit is contained in:
Iván Ovejero
2024-04-05 17:45:21 +02:00
committed by GitHub
parent e47e4bf671
commit ae3f164c5c

View File

@@ -46,6 +46,11 @@ export class MoveSshKeysToDatabase1711390882123 implements ReversibleMigration {
return;
}
if (!privateKey) {
logger.error(`[${migrationName}] No private key found, skipping`);
return;
}
const value = JSON.stringify({
encryptedPrivateKey: this.cipher.encrypt(privateKey),
publicKey,