Update
parent
7ec61b5d2e
commit
c733101d1d
|
|
@ -45,7 +45,7 @@ class SoilMonitoringLogFixCommand extends Command
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
foreach ($devices as $device) {
|
foreach ($devices as $device) {
|
||||||
if (is_null(SoilMonitoringLog::where('device_id', $device->id)->where('monitored_at', $time)->first())) {
|
if (SoilMonitoringLog::where('device_id', $device->id)->where('monitored_at', $time)->first()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class WaterQualityMonitoringLogFixCommand extends Command
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
foreach ($devices as $device) {
|
foreach ($devices as $device) {
|
||||||
if (is_null(WaterQualityMonitoringLog::where('device_id', $device->id)->where('monitored_at', $time)->first())) {
|
if (WaterQualityMonitoringLog::where('device_id', $device->id)->where('monitored_at', $time)->first()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue