endpoint setup
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class OwnerRepository:
|
||||
|
||||
@staticmethod
|
||||
async def update(session, owner, data: dict):
|
||||
for key, value in data.items():
|
||||
setattr(owner, key, value)
|
||||
await session.flush()
|
||||
return owner
|
||||
Reference in New Issue
Block a user