diff --git a/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java b/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java index 126c584..92b8a53 100644 --- a/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java +++ b/src/main/java/com/loafle/overflow/module/sensor/service/SensorService.java @@ -46,8 +46,8 @@ public class SensorService { return this.sensorDAO.findAllByTargetList(targetList); } - public List readAllByInfra(Infra infra) { - Infra dbInfra = this.infraService.read(infra.getId()); + public List readAllByInfra(long infraId) { + Infra dbInfra = this.infraService.read(infraId); if(dbInfra == null || dbInfra.getTarget() == null) return null;