diff --git a/src/utils/PlatformServiceMixin.ts b/src/utils/PlatformServiceMixin.ts index 2e8b8a77..f9045449 100644 --- a/src/utils/PlatformServiceMixin.ts +++ b/src/utils/PlatformServiceMixin.ts @@ -514,7 +514,7 @@ export const PlatformServiceMixin = { * Utility method for retrieving master settings * Common pattern used across many components */ - async $getMasterSettings( + async _getMasterSettings( fallback: Settings | null = null, ): Promise { try { @@ -571,7 +571,7 @@ export const PlatformServiceMixin = { ): Promise { try { // Get default settings - const defaultSettings = await this.$getMasterSettings(defaultFallback); + const defaultSettings = await this._getMasterSettings(defaultFallback); // If no account DID, return defaults if (!accountDid) { @@ -970,7 +970,7 @@ export const PlatformServiceMixin = { * @returns Fresh settings object from database */ async $settings(defaults: Settings = {}): Promise { - const settings = await this.$getMasterSettings(defaults); + const settings = await this._getMasterSettings(defaults); if (!settings) { return defaults; @@ -1003,7 +1003,7 @@ export const PlatformServiceMixin = { ): Promise { try { // Get default settings first - const defaultSettings = await this.$getMasterSettings(defaults); + const defaultSettings = await this._getMasterSettings(defaults); if (!defaultSettings) { return defaults; @@ -1848,7 +1848,7 @@ export const PlatformServiceMixin = { async $debugMergedSettings(did: string): Promise { try { // Get default settings - const defaultSettings = await this.$getMasterSettings({}); + const defaultSettings = await this._getMasterSettings({}); logger.debug( `[PlatformServiceMixin] Default settings:`, defaultSettings, @@ -1898,7 +1898,6 @@ export interface IPlatformServiceMixin { params?: unknown[], ): Promise; $dbRawQuery(sql: string, params?: unknown[]): Promise; - $getMasterSettings(fallback?: Settings | null): Promise; $getMergedSettings( defaultKey: string, accountDid?: string, @@ -2023,7 +2022,6 @@ declare module "@vue/runtime-core" { params?: unknown[], ): Promise; $dbRawQuery(sql: string, params?: unknown[]): Promise; - $getMasterSettings(defaults?: Settings | null): Promise; $getMergedSettings( key: string, did?: string, diff --git a/src/views/ContactAmountsView.vue b/src/views/ContactAmountsView.vue index db8c8bad..b34b3d11 100644 --- a/src/views/ContactAmountsView.vue +++ b/src/views/ContactAmountsView.vue @@ -223,7 +223,7 @@ export default class ContactAmountssView extends Vue { const contact = await this.$getContact(contactDid); this.contact = contact; - const settings = await this.$getMasterSettings(); + const settings = await this.$settings(); // Get activeDid from active_identity table (single source of truth) // eslint-disable-next-line @typescript-eslint/no-explicit-any