Skip to content

Commit

Permalink
fix backend linitnig error
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmineguru committed Dec 14, 2023
1 parent 8af51ce commit 0a00952
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/routes/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def update_user_email(uid: str) -> Response:
new_email = request.get_json().get("email", "")

current_user = carbon_auth.auth.current_user()
print(current_user)

CarbonTrackDB.users_coll.update_one(query, {"$set": {"email": new_email}})

Expand All @@ -149,6 +150,7 @@ def update_user_name(user_id: str) -> Response:
query = {"uid": user_id}

current_user = carbon_auth.auth.current_user()
print(current_user)

CarbonTrackDB.users_coll.update_one(query, {"$set": {"full_name": new_name}})

Expand Down Expand Up @@ -190,6 +192,7 @@ def update_user_occupancy(user_id: str) -> Response:
query = {"uid": user_id}

current_user = carbon_auth.auth.current_user()
print(current_user)

print(f"Updating occupancy for user {user_id} to {new_occupancy}")

Expand Down

0 comments on commit 0a00952

Please sign in to comment.