convert all remaining DB writes & reads to SQL (with successful registration & claim)
This commit is contained in:
@@ -91,7 +91,8 @@
|
||||
import { Component, Vue } from "vue-facing-decorator";
|
||||
import { Router } from "vue-router";
|
||||
|
||||
import { AppString, PASSKEYS_ENABLED } from "../constants/app";
|
||||
import { AppString, PASSKEYS_ENABLED, USE_DEXIE_DB } from "../constants/app";
|
||||
import * as databaseUtil from "../db/databaseUtil";
|
||||
import { retrieveSettingsForActiveAccount } from "../db/index";
|
||||
import {
|
||||
registerSaveAndActivatePasskey,
|
||||
@@ -109,7 +110,10 @@ export default class StartView extends Vue {
|
||||
numAccounts = 0;
|
||||
|
||||
async mounted() {
|
||||
const settings = await retrieveSettingsForActiveAccount();
|
||||
let settings = await databaseUtil.retrieveSettingsForActiveAccount();
|
||||
if (USE_DEXIE_DB) {
|
||||
settings = await retrieveSettingsForActiveAccount();
|
||||
}
|
||||
this.givenName = settings.firstName || "";
|
||||
|
||||
this.numAccounts = await retrieveAccountCount();
|
||||
|
||||
Reference in New Issue
Block a user