fix: fixed module updating
This commit is contained in:
@ -31,13 +31,6 @@ class ModuleService(
|
||||
raise ObjectNotFoundException(f"Модуль с ID {pk} не найден")
|
||||
return GetByIdWithAttributesResponse(entity=module)
|
||||
|
||||
async def update_module_common_info(
|
||||
self, module_id: int, request: UpdateModuleCommonInfoRequest
|
||||
) -> UpdateModuleCommonInfoResponse:
|
||||
module = await self.repository.get_by_id(module_id)
|
||||
await self.repository.update(module, request)
|
||||
return UpdateModuleCommonInfoResponse(message="Данные модуля успешно сохранены")
|
||||
|
||||
def _build_modules_with_attributes(
|
||||
self, result: list[tuple]
|
||||
) -> dict[int, ModuleWithAttributesSchema]:
|
||||
|
||||
Reference in New Issue
Block a user