refactor: entity not found exceptions handler
This commit is contained in:
@ -15,6 +15,7 @@ class ServiceRepository(
|
||||
RepGetByIdMixin[Service],
|
||||
):
|
||||
entity_class = Service
|
||||
entity_not_found_msg = "Услуга не найдена"
|
||||
|
||||
async def update(self, service: Service, data: UpdateServiceSchema) -> Service:
|
||||
return await self._apply_update_data_to_model(service, data, True)
|
||||
|
||||
Reference in New Issue
Block a user