Skip to content

Commit

Permalink
Fix passing id as string (UUID throws an error in sentry)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Jun 4, 2020
1 parent 3633c34 commit 52abcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/atlas/middleware/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __call__(self, request):

with sentry_sdk.configure_scope() as scope:
scope.user = (
{"id": request.user.id, "email": request.user.email}
{"id": str(request.user.id), "email": request.user.email}
if request.user.is_authenticated
else {}
)
Expand Down

0 comments on commit 52abcac

Please sign in to comment.