From 38e67f3533c20a97fc5594e84ab3aedbdd491362 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 6 Jun 2025 19:50:16 -0600 Subject: [PATCH] update a DB save to match others, ie. first SQL then maybe Dexie --- src/views/IdentitySwitcherView.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/IdentitySwitcherView.vue b/src/views/IdentitySwitcherView.vue index cfb6908b..04d9c4ac 100644 --- a/src/views/IdentitySwitcherView.vue +++ b/src/views/IdentitySwitcherView.vue @@ -172,17 +172,16 @@ export default class IdentitySwitcherView extends Vue { if (did === "0") { did = undefined; } + const platformService = PlatformServiceFactory.getInstance(); + await platformService.dbExec( + `UPDATE settings SET activeDid = ? WHERE id = ?`, + [did ?? "", MASTER_SETTINGS_KEY], + ); if (USE_DEXIE_DB) { await db.open(); await db.settings.update(MASTER_SETTINGS_KEY, { activeDid: did ?? "", }); - } else { - const platformService = PlatformServiceFactory.getInstance(); - await platformService.dbExec( - `UPDATE settings SET activeDid = ? WHERE id = ?`, - [did ?? "", MASTER_SETTINGS_KEY], - ); } this.$router.push({ name: "account" }); }