fix: services kit create and update fix

This commit is contained in:
2025-09-25 09:43:03 +04:00
parent 22b8428035
commit 8cf589c54e
3 changed files with 29 additions and 4 deletions

View File

@ -19,3 +19,8 @@ class ServiceRepository(
async def update(self, service: Service, data: UpdateServiceSchema) -> Service:
return await self._apply_update_data_to_model(service, data, True)
async def get_by_ids(self, ids: list[int]) -> list[Service]:
stmt = select(Service).where(Service.id.in_(ids))
result = await self.session.execute(stmt)
return result.scalars().all()