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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,