Fix encrypt-decrypt issue.

This commit is contained in:
Matthew Aaron Raymer
2022-12-17 13:32:00 +08:00
parent c6d0473fab
commit 4a407b43ae
2 changed files with 13 additions and 15 deletions

View File

@@ -225,7 +225,7 @@ export default class AccountViewView extends Vue {
);
try {
await db.open();
const num_accounts = await db._allTables.accounts.count();
const num_accounts = await db.accounts.count();
if (num_accounts === 0) {
console.log("...");
await db._allTables.accounts.add({
@@ -235,7 +235,7 @@ export default class AccountViewView extends Vue {
dateCreated: new Date().getTime(),
});
}
const accounts = await db._allTables.accounts.toArray();
const accounts = await db.accounts.toArray();
console.log(accounts[0]);
const identity = JSON.parse(accounts[0].identity);
@@ -244,8 +244,9 @@ export default class AccountViewView extends Vue {
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... created new ID..."}))
//appStore.dispatch(appSlice.actions.addLog({log: false, msg: "... stored new ID..."}))
} catch {
} catch (err) {
console.log("Error!");
console.log(err);
}
}
}