mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 14:00:17 +00:00
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:
co-authored by
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user