Fix updateUserXPAndLevel profiles table name
cgen-43ce9340f28a47649b49d2e042d7f08a
This commit is contained in:
parent
a1ce309b12
commit
6002836d22
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue