diff --git a/app/Jobs/SendDailyDigestNotificationsJob.php b/app/Jobs/SendDailyDigestNotificationsJob.php index 123031ae..d663243e 100644 --- a/app/Jobs/SendDailyDigestNotificationsJob.php +++ b/app/Jobs/SendDailyDigestNotificationsJob.php @@ -37,6 +37,9 @@ public function __construct(Task $task) */ public function handle(): void { + if (! $this->task->project) { + return; + } $users = $this->task->project->users()->get(); $users = $this->skipRecipients($users); $usersGroupedByLocale = $users->groupBy('locale');