From d0dd9e67192cdc7d7c1e39a12239bcb8303e84a3 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 4 Oct 2025 21:41:25 +0000 Subject: [PATCH] Remove fallback data structures cgen-1f089965dc734103ac42efcbf2037b94 --- client/lib/aethex-database-adapter.ts | 33 --------------------------- 1 file changed, 33 deletions(-) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index 5323e6b4..c3046fdb 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -212,39 +212,6 @@ export interface ActivateRewardsResponse { targetUserId?: string | null; } -const fallbackInterests = new Map(); - -const fallbackAchievementCatalog: ReadonlyArray = [ - { - id: "welcome-to-aethex", - name: "Welcome to AeThex", - description: "Complete your AeThex passport to unlock the community.", - icon: "sparkles", - xp_reward: 150, - badge_color: "#7C3AED", - created_at: "2024-01-01T00:00:00.000Z", - }, - { - id: "aethex-explorer", - name: "AeThex Explorer", - description: "Link your favorite tools and showcase your craft.", - icon: "compass", - xp_reward: 200, - badge_color: "#06B6D4", - created_at: "2024-01-01T00:00:00.000Z", - }, -]; - -const fallbackAchievementsById = new Map( - fallbackAchievementCatalog.map((achievement) => [achievement.id, achievement]), -); - -const fallbackAchievementsByName = new Map( - fallbackAchievementCatalog.map((achievement) => [achievement.name, achievement]), -); - -const fallbackUserAchievements = new Map>(); - function isTableMissing(err: any): boolean { const msg = String(err?.message || err?.hint || err?.details || ""); return (