Skip to content

Commit

Permalink
fix!: return error in /me
Browse files Browse the repository at this point in the history
  • Loading branch information
tnix100 committed Aug 14, 2024
1 parent 8c3fc47 commit aec3da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_api/v0/me.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def get_me():
db.usersv0.update_one({"_id": request.user}, {"$set": {"last_seen": int(time.time())}})

# Get and return account
return security.get_account(request.user, include_config=True), 200
return {"error": False, **security.get_account(request.user, include_config=True)}, 200


@me_bp.delete("/")
Expand Down

0 comments on commit aec3da0

Please sign in to comment.