Skip to content

Commit 420350f

Browse files
authored
fix: correct conversion of legacy typo-containing strings in getGcpKmsAccount (#721)
1 parent 806c37e commit 420350f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/utils/wallets/getGcpKmsAccount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ export async function getGcpKmsAccount(
5252
}
5353
}
5454

55-
// we had a bug previously where we previously called it "cryptoKeyVersion" instead of "cryptoKeyVersions"
55+
// we had a bug previously where we previously called it "cryptoKeysVersion" instead of "cryptoKeyVersions"
5656
// if we detect that, we'll fix it here
5757
// TODO: remove this as a breaking change
5858
const name = unprocessedName.includes("cryptoKeyVersions")
5959
? unprocessedName
60-
: unprocessedName.replace("cryptoKeyVersion", "cryptoKeyVersions");
60+
: unprocessedName.replace("cryptoKeysVersion", "cryptoKeyVersions");
6161

6262
const signer = new CloudKmsSigner(name, clientOptions);
6363

0 commit comments

Comments
 (0)