Update src/main/java/com/mediamanager/service/samplingrate/SamplingRateService.java
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
5ff972ebcb
commit
4fa147282f
|
|
@ -32,6 +32,9 @@ public class SamplingRateService {
|
|||
}
|
||||
|
||||
public Optional<SamplingRate> getSamplingRateById(Integer id) {
|
||||
if (id == null) {
|
||||
throw new IllegalArgumentException("ID cannot be null");
|
||||
}
|
||||
logger.info("Getting sampling rate by id:{}", id);
|
||||
return repository.findById(id);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue