fix: services kit create and update fix
This commit is contained in:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user