|
|
@ -187,10 +187,9 @@ export default class IdentitySwitcherView extends Vue { |
|
|
|
text: "Are you sure you want to erase this identity? (There is no undo. You may want to select it and back it up just in case.)", |
|
|
|
onYes: async () => { |
|
|
|
const platformService = PlatformServiceFactory.getInstance(); |
|
|
|
await platformService.dbExec( |
|
|
|
`DELETE FROM accounts WHERE id = ?`, |
|
|
|
[id], |
|
|
|
); |
|
|
|
await platformService.dbExec(`DELETE FROM accounts WHERE id = ?`, [ |
|
|
|
id, |
|
|
|
]); |
|
|
|
if (USE_DEXIE_DB) { |
|
|
|
// one of the few times we use accountsDBPromise directly; try to avoid more usage |
|
|
|
const accountsDB = await accountsDBPromise; |
|
|
|