diff --git a/app/Services/Invoice/CreateInvitations.php b/app/Services/Invoice/CreateInvitations.php index 07734ab6433f..fb5e26a82b7d 100644 --- a/app/Services/Invoice/CreateInvitations.php +++ b/app/Services/Invoice/CreateInvitations.php @@ -33,7 +33,7 @@ class CreateInvitations extends AbstractService public function run() { - $contacts = $this->invoice->client->contacts; + $contacts = $this->invoice->client->contacts()->where('send_email', true)->get(); if($contacts->count() == 0){ $this->createBlankContact();