dev
Jing Li 2022-11-23 20:42:49 +08:00
parent 7ec61b5d2e
commit c733101d1d
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class SoilMonitoringLogFixCommand extends Command
->get();
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;
}

View File

@ -45,7 +45,7 @@ class WaterQualityMonitoringLogFixCommand extends Command
->get();
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;
}