@@ -46,7 +46,7 @@ public class TariffService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public TariffDTO getTariffByType(TariffType type) {
|
public TariffDTO getTariffByType(TariffType type) {
|
||||||
return tariffRepository.findByType(type)
|
return tariffRepository.findByType(type.toString())
|
||||||
.map(this::convertToDTO)
|
.map(this::convertToDTO)
|
||||||
.orElseThrow(() -> new TariffNotFoundException("Tariff not found"));
|
.orElseThrow(() -> new TariffNotFoundException("Tariff not found"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user