Skip to content

Commit

Permalink
test(core): Fix multiple parallel private key checks (no-changelog) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored and netroy committed Apr 11, 2024
1 parent 252dc97 commit f8649ac
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f8649ac

Please sign in to comment.