diff --git a/src/components/TopMessage.vue b/src/components/TopMessage.vue index 080aa6dd..9975101e 100644 --- a/src/components/TopMessage.vue +++ b/src/components/TopMessage.vue @@ -28,7 +28,7 @@ import { logger } from "../utils/logger"; export default class TopMessage extends Vue { // Enhanced PlatformServiceMixin v4.0 provides: // - Cached database operations: this.$contacts(), this.$settings(), this.$accountSettings() - // - Settings shortcuts: this.$saveSettings(), this.$saveMySettings() + // - Settings shortcuts: this.$saveSettings() // - Cache management: this.$refreshSettings(), this.$clearAllCaches() // - Ultra-concise database methods: this.$db(), this.$exec(), this.$query() // - All methods use smart caching with TTL for massive performance gains diff --git a/src/services/migrationService.ts b/src/services/migrationService.ts index 87405cce..e1369f5d 100644 --- a/src/services/migrationService.ts +++ b/src/services/migrationService.ts @@ -799,7 +799,7 @@ export async function runMigrations( } // Only show completion message in development - logger.debug( + logger.log( `🎉 [Migration] Migration process complete! Summary: ${appliedCount} applied, ${skippedCount} skipped`, ); } catch (error) { diff --git a/src/utils/PlatformServiceMixin.ts b/src/utils/PlatformServiceMixin.ts index 7fe727be..2e8b8a77 100644 --- a/src/utils/PlatformServiceMixin.ts +++ b/src/utils/PlatformServiceMixin.ts @@ -1212,6 +1212,11 @@ export const PlatformServiceMixin = { * @param changes Settings changes to save * @returns Promise Success status */ + /** + * Since this is unused, and since it relies on this.activeDid which isn't guaranteed to exist, + * let's take this out for the sake of safety. + * Totally remove after start of 2026 (since it would be obvious by then that it's not used). + * async $saveMySettings(changes: Partial): Promise { // eslint-disable-next-line @typescript-eslint/no-explicit-any const currentDid = (this as any).activeDid; @@ -1221,6 +1226,7 @@ export const PlatformServiceMixin = { } return await this.$saveUserSettings(currentDid, changes); }, + **/ // ================================================= // CACHE MANAGEMENT METHODS @@ -2040,7 +2046,8 @@ declare module "@vue/runtime-core" { did: string, changes: Partial, ): Promise; - $saveMySettings(changes: Partial): Promise; + // @deprecated; see implementation note above + // $saveMySettings(changes: Partial): Promise; // Cache management methods $refreshSettings(): Promise; diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 9374d079..e8d2035a 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -645,7 +645,9 @@ export default class HomeView extends Vue { if (resp.status === 200) { // Ultra-concise settings update with automatic cache invalidation! - await this.$saveMySettings({ isRegistered: true }); + await this.$saveUserSettings(this.activeDid, { + isRegistered: true, + }); this.isRegistered = true; } } catch (error) {