Skip to content

Commit

Permalink
Prevent NotInAppUsers exception
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jan 9, 2025
1 parent deca690 commit 89aa64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ async def get_notifications(request):
if session_user is None:
return web.json_response({})

user = app_state.users[session_user]
user = await app_state.users.get(session_user)

if user.notifications is None:
cursor = app_state.db.notify.find({"notifies": session_user})
Expand Down

0 comments on commit 89aa64a

Please sign in to comment.