backend/feature/supabase #60

Open
kscheidecker wants to merge 8 commits from backend/feature/supabase into main
3 changed files with 8 additions and 10 deletions
Showing only changes of commit fd091a9ccc - Show all commits

File diff suppressed because one or more lines are too long

View File

@ -285,9 +285,7 @@ def register_user(email: str = Body(...), password: str = Body(...)) -> str:
logger.error(f"Failed to create user : {str(e.code)}")
raise HTTPException(status_code=500, detail=str(e)) from e
logger.debug(response)
# Extract the identity_id and user_id
# identity = response.user.id # Accessing the identity
user_id = response.user.id
logger.info(f"User created successfully, ID: {user_id}")

View File

@ -165,7 +165,7 @@ class Supabase:
# Check if the update was successful
if update_response.data:
self.logger.debug(f'Credit balance successfully decremented.')
self.logger.debug(f'Credit balance successfully incremented.')
return True
else:
raise Exception("Error decrementing credit balance.")
raise Exception("Error incrementing credit balance.")