Fix another mysql error in isMaintenance() (#11746)

This commit is contained in:
arrmo
2020-05-31 09:55:52 -05:00
committed by GitHub
parent 24d4a50cdf
commit 0af2358bfa

View File

@ -53,8 +53,7 @@ class AlertSchedule extends Model
$query->where('start_recurring_dt', '<=', DB::raw("date_format(NOW(), '%Y-%m-%d')"))
->where(function ($query) {
$query->where('end_recurring_dt', '>=', DB::raw("date_format(NOW(), '%Y-%m-%d')"))
->orWhereNull('end_recurring_dt')
->orWhere('end_recurring_dt', '0000-00-00');
->orWhereNull('end_recurring_dt');
});
})
// Check the time is between the start and end hour/minutes/seconds