diff --git a/app/Jobs/SendReminders.php b/app/Jobs/SendReminders.php index d21113c..f317c8a 100644 --- a/app/Jobs/SendReminders.php +++ b/app/Jobs/SendReminders.php @@ -28,7 +28,7 @@ public function handle() ->whereDoesntHave('reminder', function ($query) { $query->whereDate('sent_at', now()); }) - ->andWhereHas('site', function ($query) { + ->whereHas('site', function ($query) { /** * possible cases: * site collected this year, but not 11 months ago -> no reminders