This commit is contained in:
2026-03-03 22:33:21 +03:00
parent 69995cf099
commit 507258367a
4 changed files with 196 additions and 0 deletions
@@ -43,6 +43,16 @@ class ResidentsRepository:
real_name=real_name,
)
async def update_resident_room(
self,
resident_id: int,
room_id: int,
) -> Resident | None:
return await self.residents_dao.update(
resident_id,
room=room_id,
)
async def add_active_hours(self, resident_id: int, hours: int) -> Resident | None:
resident = await self.residents_dao.get_by_id(resident_id)
if resident: