Skip to content

Commit

Permalink
[TM-1564] add validation to verify if exist project (#606)
Browse files Browse the repository at this point in the history
* [TM-1564] add validation to verify if exist project

* lint fix
  • Loading branch information
LimberHope authored Dec 12, 2024
1 parent 00591ef commit 027ac18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Jobs/SendDailyDigestNotificationsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 027ac18

Please sign in to comment.