diff options
author | 2024-07-08 21:35:32 +0100 | |
---|---|---|
committer | 2024-07-21 13:45:30 +0100 | |
commit | 41169d155f025c78a68889d36b3cc4ebb07a99cf (patch) | |
tree | c06a45c930b3fcecc678256820962722c909b18a /backend/authentication | |
parent | Update 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.py | 5 |
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 |