From 6002836d2234bfa35f254c133e15d548bdcc49ec Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 16 Aug 2025 04:11:12 +0000 Subject: [PATCH] Fix updateUserXPAndLevel profiles table name cgen-43ce9340f28a47649b49d2e042d7f08a --- client/lib/aethex-database-adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index eaffc32a..802b700c 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -333,7 +333,7 @@ export const aethexAchievementService = { async updateUserXPAndLevel(userId: string, xpGained: number): Promise { // Get current user data const { data: profile } = await supabase - .from("profiles") + .from("user_profiles") .select("total_xp, level, loyalty_points") .eq("id", userId) .single();