Fix updateUserXPAndLevel profiles table name

cgen-43ce9340f28a47649b49d2e042d7f08a
This commit is contained in:
Builder.io 2025-08-16 04:11:12 +00:00
parent a1ce309b12
commit 6002836d22

View file

@ -333,7 +333,7 @@ export const aethexAchievementService = {
async updateUserXPAndLevel(userId: string, xpGained: number): Promise<void> {
// Get current user data
const { data: profile } = await supabase
.from("profiles")
.from("user_profiles")
.select("total_xp, level, loyalty_points")
.eq("id", userId)
.single();