From 971bc68a74ce70d913f26beb9ccc76696830273f Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Sun, 31 Aug 2025 03:50:06 +0000 Subject: [PATCH] temp: whitelist unused table defintion since I'm doing step-wise changes --- src/utils/PlatformServiceMixin.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/utils/PlatformServiceMixin.ts b/src/utils/PlatformServiceMixin.ts index 071eae35..5c4d21f4 100644 --- a/src/utils/PlatformServiceMixin.ts +++ b/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"; // ================================================= @@ -561,26 +562,26 @@ export const PlatformServiceMixin = { if (result?.values?.length) { const activeDid = result.values[0][0] as string; - + // Validate activeDid exists in accounts if (activeDid) { const accountExists = await this.$dbQuery( "SELECT did FROM accounts WHERE did = ?", - [activeDid] + [activeDid], ); - + if (accountExists?.values?.length) { return { activeDid }; } 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: "" }; } } } - + return { activeDid: "" }; } catch (error) { logger.error(