From 79b2f9a273253938d938edfd5f9f3a4f26f7e5ae Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Thu, 11 Sep 2025 06:14:38 +0000 Subject: [PATCH] chore: lagging file --- src/utils/PlatformServiceMixin.ts | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/utils/PlatformServiceMixin.ts b/src/utils/PlatformServiceMixin.ts index c3ae7783..c4912afd 100644 --- a/src/utils/PlatformServiceMixin.ts +++ b/src/utils/PlatformServiceMixin.ts @@ -613,7 +613,9 @@ export const PlatformServiceMixin = { ); if (!result?.values?.length) { - logger.warn("[PlatformServiceMixin] Active identity table is empty - this may indicate a migration issue"); + logger.warn( + "[PlatformServiceMixin] Active identity table is empty - this may indicate a migration issue", + ); return { activeDid: "" }; } @@ -624,7 +626,7 @@ export const PlatformServiceMixin = { const firstAccount = await this.$dbQuery( "SELECT did FROM accounts ORDER BY dateCreated, did LIMIT 1", ); - + if (firstAccount?.values?.length) { const firstAccountDid = firstAccount.values[0][0] as string; await this.$dbExec( @@ -633,8 +635,10 @@ export const PlatformServiceMixin = { ); return { activeDid: firstAccountDid }; } - - logger.warn("[PlatformServiceMixin] No accounts available for auto-selection"); + + logger.warn( + "[PlatformServiceMixin] No accounts available for auto-selection", + ); return { activeDid: "" }; } @@ -649,13 +653,18 @@ export const PlatformServiceMixin = { } // Clear corrupted activeDid and return empty - logger.warn("[PlatformServiceMixin] Active identity not found in accounts, clearing"); + logger.warn( + "[PlatformServiceMixin] Active identity not found in accounts, clearing", + ); await this.$dbExec( "UPDATE active_identity SET activeDid = NULL, lastUpdated = datetime('now') WHERE id = 1", ); return { activeDid: "" }; } catch (error) { - logger.error("[PlatformServiceMixin] Error getting active identity:", error); + logger.error( + "[PlatformServiceMixin] Error getting active identity:", + error, + ); return { activeDid: "" }; } },