dev add tarriff description
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-05-15 15:52:50 +07:00
parent afe78f74f2
commit cbff850da6
@@ -86,8 +86,9 @@ public class TariffService {
Tariff tariff = tariffRepository.findById(id) Tariff tariff = tariffRepository.findById(id)
.orElseThrow(() -> new TariffNotFoundException("Tariff not found")); .orElseThrow(() -> new TariffNotFoundException("Tariff not found"));
Tariff updateTariffFromDTO = updateTariffFromDTO(tariff, tariffDTO, tariffRequest); Tariff updateTariffFromDTO = updateTariffFromDTO(tariff, tariffDTO, tariffRequest);
Tariff save = tariffRepository.save(updateTariffFromDTO);
return convertToDTO(tariffRepository.save(updateTariffFromDTO)); return convertToDTO(save);
} }
@Transactional @Transactional