Изменение моделей пайдентика

This commit is contained in:
urec56 2024-06-05 13:35:52 +05:00
parent f66cdb262a
commit 514e7a7c44
2 changed files with 2 additions and 1 deletions

View file

@ -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(

View file

@ -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: