add tasks repo update uow and manager

This commit is contained in:
IluaAir
2025-08-08 14:04:33 +03:00
parent 6657f55545
commit 9c20b7690c
3 changed files with 9 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
from src.repository.tasks import TasksRepo
from src.repository.users import UsersRepo
@@ -8,6 +9,7 @@ class DBManager:
async def __aenter__(self):
self.session = self.session_factory()
self.user = UsersRepo(self.session)
self.task = TasksRepo(self.session)
return self
async def __aexit__(self, exc_type, exc_val, exc_tb):