sync
This commit is contained in:
@@ -7,10 +7,7 @@ class UnitOfWork:
|
||||
|
||||
async def __aenter__(self):
|
||||
self.session = self.session_factory()
|
||||
|
||||
self.users = UserRepository(self.session)
|
||||
print("session id:", id(self.session))
|
||||
print("UoW obj id:", id(self))
|
||||
|
||||
async def __aexit__(self, *args):
|
||||
await self.session.rollback()
|
||||
|
Reference in New Issue
Block a user