aboutsummaryrefslogtreecommitdiffstats
path: root/backend/authentication
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-07-08 21:35:32 +0100
committerGravatar Chris Lovering <[email protected]>2024-07-21 13:45:30 +0100
commit41169d155f025c78a68889d36b3cc4ebb07a99cf (patch)
treec06a45c930b3fcecc678256820962722c909b18a /backend/authentication
parentUpdate middleware to use SQLA to create db sessions (diff)
Move existing models to schemas namespace
This is to make room for a new ORM namespace for SQLAlchemy models
Diffstat (limited to 'backend/authentication')
-rw-r--r--backend/authentication/user.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/authentication/user.py b/backend/authentication/user.py
index 5e99546..6ad4c63 100644
--- a/backend/authentication/user.py
+++ b/backend/authentication/user.py
@@ -4,8 +4,9 @@ import jwt
from pymongo.database import Database
from starlette.authentication import BaseUser
-from backend import discord, models
+from backend import discord
from backend.constants import SECRET_KEY
+from backend.models import dtos
class User(BaseUser):
@@ -15,7 +16,7 @@ class User(BaseUser):
self,
token: str,
payload: dict[str, t.Any],
- member: models.DiscordMember | None,
+ member: dtos.DiscordMember | None,
) -> None:
self.token = token
self.payload = payload