Browse Source

temp: whitelist unused table defintion since I'm doing step-wise changes

pull/188/head
Matthew Raymer 2 weeks ago
parent
commit
971bc68a74
  1. 5
      src/utils/PlatformServiceMixin.ts

5
src/utils/PlatformServiceMixin.ts

@ -58,6 +58,7 @@ import {
generateInsertStatement,
generateUpdateStatement,
} from "@/utils/sqlHelpers";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { ActiveIdentity } from "@/db/tables/activeIdentity";
// =================================================
@ -566,7 +567,7 @@ export const PlatformServiceMixin = {
if (activeDid) {
const accountExists = await this.$dbQuery(
"SELECT did FROM accounts WHERE did = ?",
[activeDid]
[activeDid],
);
if (accountExists?.values?.length) {
@ -574,7 +575,7 @@ export const PlatformServiceMixin = {
} else {
// Clear corrupted activeDid
await this.$dbExec(
"UPDATE active_identity SET activeDid = '', lastUpdated = datetime('now') WHERE id = 1"
"UPDATE active_identity SET activeDid = '', lastUpdated = datetime('now') WHERE id = 1",
);
return { activeDid: "" };
}

Loading…
Cancel
Save