aboutsummaryrefslogtreecommitdiffstats
path: root/backend/routes/auth
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-12-05 17:18:18 +0000
committerGravatar GitHub <[email protected]>2020-12-05 17:18:18 +0000
commite1a628bf579d74cbd6923ea42a91dd00ff5e4e05 (patch)
tree888b9b093f825cf8afc25f3494482b2ad61a1db2 /backend/routes/auth
parentCreate review-policy.yml (diff)
parentCreate route for creating new forms (diff)
Merge pull request #13 from python-discord/ks123/forms-routes
Diffstat (limited to 'backend/routes/auth')
-rw-r--r--backend/routes/auth/authorize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py
index 5de49f5..41c0a0b 100644
--- a/backend/routes/auth/authorize.py
+++ b/backend/routes/auth/authorize.py
@@ -25,7 +25,7 @@ class AuthorizeRoute(Route):
bearer_token = await fetch_bearer_token(data["token"])
user_details = await fetch_user_details(bearer_token["access_token"])
- user_details["admin"] = request.state.db.admins.find_one(
+ user_details["admin"] = await request.state.db.admins.find_one(
{"_id": user_details["id"]}
) is not None