Skip to content

Commit

Permalink
Removed User Duplicate Method
Browse files Browse the repository at this point in the history
  • Loading branch information
Yazan10x committed Nov 27, 2023
1 parent ebedfee commit b2ac181
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions backend/routes/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
users = Blueprint('/users', __name__)


@carbon_auth.auth.login_required
def get_user_obj(user_id: ObjectId) -> User:
query = {"_id": user_id}
item = CarbonTrackDB.users_coll.find_one(query)
item = User.from_json(item)
return item

@users.route("/user/<user_id>", methods=['GET'])
@carbon_auth.auth.login_required
def get_user(user_id: str) -> Response:
Expand Down

0 comments on commit b2ac181

Please sign in to comment.