From a88f695390390841c65dcadc0d3cf7971a03d837 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 11 Apr 2025 17:53:37 +0100 Subject: [PATCH] Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store.ts b/src/store.ts index d9369f52..1f4dcc93 100644 --- a/src/store.ts +++ b/src/store.ts @@ -101,8 +101,10 @@ export class Store extends ElectronStore<{ ...(await keytar.findCredentials(KEYTAR_SERVICE)), ]; for (const cred of credentials) { - await this.deleteSecretKeytar(LEGACY_KEYTAR_SERVICE, cred.account); + console.info("Store migration: writing", cred); await this.setSecret(cred.account, cred.password); + console.info("Store migration: deleting", cred); + await this.deleteSecretKeytar(LEGACY_KEYTAR_SERVICE, cred.account); } console.info(`Store migration done: found ${credentials.length} credentials`); }