diff --git a/src/utils/PlatformServiceMixin.ts b/src/utils/PlatformServiceMixin.ts index 56baa309..2d80d870 100644 --- a/src/utils/PlatformServiceMixin.ts +++ b/src/utils/PlatformServiceMixin.ts @@ -301,7 +301,7 @@ export const PlatformServiceMixin = { return settings; } catch (error) { logger.error( - `[${(this as any).$options.name}] Failed to get settings:`, + `[${(this as unknown as VueComponentWithMixin).$options.name}] Failed to get settings:`, { key, error, @@ -375,7 +375,7 @@ export const PlatformServiceMixin = { return mergedSettings; } catch (error) { logger.error( - `[${(this as any).$options.name}] Failed to get merged settings:`, + `[${(this as unknown as VueComponentWithMixin).$options.name}] Failed to get merged settings:`, { defaultKey, accountDid, @@ -474,7 +474,7 @@ export const PlatformServiceMixin = { sql: string, params: unknown[] = [], ): Promise { - const results = await (this as any).$query(sql, params); + const results = await this.$query(sql, params); return results.length > 0 ? (results[0] as T) : null; }, @@ -553,7 +553,7 @@ export const PlatformServiceMixin = { const currentDid = did || (this as any).activeDid; const cacheKey = `account_settings_${currentDid || "default"}`; - const cached = this._getCached(cacheKey); + const cached = this._getCached(cacheKey); if (cached) { return { ...cached, ...defaults }; // Merge with any new defaults } @@ -647,7 +647,7 @@ export const PlatformServiceMixin = { * Manually refresh contacts cache - $refreshContacts() * Forces reload of contacts from database */ - async $refreshContacts(): Promise { + async $refreshContacts(): Promise { this._invalidateCache("contacts_all"); return await this.$contacts(); }, @@ -745,7 +745,7 @@ declare module "@vue/runtime-core" { // Cache management methods $refreshSettings(): Promise; - $refreshContacts(): Promise; + $refreshContacts(): Promise; $clearAllCaches(): void; } }