Skip to content

Commit ae3f164

Browse files
authored
test(core): Fix multiple parallel private key checks (no-changelog) (#9012)
1 parent e47e4bf commit ae3f164

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/cli/src/databases/migrations/common/1711390882123-MoveSshKeysToDatabase.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ export class MoveSshKeysToDatabase1711390882123 implements ReversibleMigration {
4646
return;
4747
}
4848

49+
if (!privateKey) {
50+
logger.error(`[${migrationName}] No private key found, skipping`);
51+
return;
52+
}
53+
4954
const value = JSON.stringify({
5055
encryptedPrivateKey: this.cipher.encrypt(privateKey),
5156
publicKey,

0 commit comments

Comments
 (0)