From 1276d199e37328f22712af46c27db65ceedcb5d3 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Tue, 16 Jul 2024 19:03:49 +0100 Subject: Use redis for the discord member cache over mongo --- backend/authentication/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/authentication/backend.py') diff --git a/backend/authentication/backend.py b/backend/authentication/backend.py index 2512761..c84ba10 100644 --- a/backend/authentication/backend.py +++ b/backend/authentication/backend.py @@ -63,7 +63,7 @@ class JWTAuthenticationBackend(authentication.AuthenticationBackend): user = User( token, user_details, - await discord.get_member(request.state.db, user_details["id"]), + await discord.get_member(user_details["id"]), ) if await user.fetch_admin_status(request.state.db): scopes.append("admin") -- cgit v1.2.3