diff --git a/app/Checks.php b/app/Checks.php index ad20adc363..6e38cc166f 100644 --- a/app/Checks.php +++ b/app/Checks.php @@ -166,7 +166,7 @@ class Checks Toastr::error("$notification->body", $notification->title); } - if (Device::isUp()->whereTime('last_polled', '<=', Carbon::now()->subMinutes(15))->count() > 0) { + if (Device::isUp()->whereTime('last_polled', '<=', DB::raw('DATE_SUB(NOW(), INTERVAL 15 MINUTE)'))->exists()) { Toastr::warning('It appears as though you have some devices that haven\'t completed polling within the last 15 minutes, you may want to check that out :)', 'Devices unpolled'); }