Изменение моделей пайдентика
This commit is contained in:
parent
f66cdb262a
commit
514e7a7c44
2 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,7 @@ router = APIRouter(prefix="/chat", tags=["Чат"])
|
|||
async def get_all_chats(user: SUser = Depends(check_verificated_user_with_exc), uow=Depends(UnitOfWork)):
|
||||
async with uow:
|
||||
result = await uow.user.get_user_allowed_chats(user.id)
|
||||
return result
|
||||
return {"allowed_chats": result}
|
||||
|
||||
|
||||
@router.post(
|
||||
|
|
|
@ -98,6 +98,7 @@ class UserDAO(BaseDAO):
|
|||
|
||||
result = await self.session.execute(query)
|
||||
result = result.mappings().all()
|
||||
print(result)
|
||||
return result
|
||||
|
||||
async def add_user_avatar(self, user_id: int, avatar: HttpUrl) -> bool:
|
||||
|
|
Loading…
Add table
Reference in a new issue