diff --git a/app/Services/DeviceLogService.php b/app/Services/DeviceLogService.php index 6c185ca..713c822 100644 --- a/app/Services/DeviceLogService.php +++ b/app/Services/DeviceLogService.php @@ -45,6 +45,10 @@ class DeviceLogService } foreach ($data['content'] as $item) { + if (! isset($item['data'])) { + continue; + } + $isSoilMonitoring = Arr::hasAny($item['data'], [ 'soil_humidity', 'soil_temperature',