aboutsummaryrefslogtreecommitdiffstats
path: root/backend/authentication/user.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-07-16 19:03:49 +0100
committerGravatar Chris Lovering <[email protected]>2024-07-16 19:07:36 +0100
commit1276d199e37328f22712af46c27db65ceedcb5d3 (patch)
tree1c70a1903f666374173e228aeaff259521525b79 /backend/authentication/user.py
parentSimplify the docker compose build config (diff)
Use redis for the discord member cache over mongo
Diffstat (limited to 'backend/authentication/user.py')
-rw-r--r--backend/authentication/user.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/authentication/user.py b/backend/authentication/user.py
index c81b7a9..ad59103 100644
--- a/backend/authentication/user.py
+++ b/backend/authentication/user.py
@@ -67,9 +67,9 @@ class User(BaseUser):
return self.admin
- async def refresh_data(self, database: Database) -> None:
+ async def refresh_data(self) -> None:
"""Fetches user data from discord, and updates the instance."""
- self.member = await discord.get_member(database, self.payload["id"])
+ self.member = await discord.get_member(self.payload["id"])
if self.member:
self.payload = self.member.user.dict()