feat-(routes updating)

This commit is contained in:
2026-11-05 21:56:37 +03:00
parent 273519109e
commit d1a8c0394b
15 changed files with 345 additions and 63 deletions
+5 -1
View File
@@ -17,6 +17,10 @@ class SessionRepo(DatabaseManager):
result = await super().get_by_field("token_hash", token_hash)
return result
async def delete_by_token_hash(self, token_hash: str) -> bool:
async def get_by_user_id(self, user_id: str) -> Optional[Session]:
result = await super().get_by_field("user_id", user_id)
return result
async def delete_by_user_id(self, token_hash: str) -> bool:
result = await super().delete_by_field("token_hash", token_hash)
return result