Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
address review: persist task type migration immediately
Adam Eivyc31f03c1ba03
diff --git a/server/services/apps.js b/server/services/apps.jsindex 9a3b49a793..5b6dab625a 100644--- a/server/services/apps.js+++ b/server/services/apps.js@@ -192,26 +192,29 @@ export async function unarchiveApp(id) {/*** Migrate app from legacy disabledTaskTypes array to taskTypeOverrides object.- * Called lazily when accessing task type data.+ * Persists changes immediately so migration only runs once per app.*/-function migrateTaskTypeOverrides(app) {- if (!app.disabledTaskTypes || app.taskTypeOverrides) return app;+async function migrateTaskTypeOverrides(id) {+ const data = await loadApps();+ const app = data?.apps?.[id];+ if (!app?.disabledTaskTypes || app.taskTypeOverrides) return;const overrides = {};for (const taskType of app.disabledTaskTypes) {overrides[taskType] = { enabled: false };}app.taskTypeOverrides = overrides;delete app.disabledTaskTypes;- return app;+ await saveApps(data);+ console.log(`📋 Migrated ${id} from disabledTaskTypes to taskTypeOverrides`);}/*** Get task type overrides for an app*/export async function getAppTaskTypeOverrides(id) {+ await migrateTaskTypeOverrides(id);const app = await getAppById(id);if (!app) return {};- migrateTaskTypeOverrides(app);return app.taskTypeOverrides || {};}