1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for mail sent listener in self hosted

This commit is contained in:
David Bomba 2022-08-20 07:38:01 +10:00
parent 879bca1fd1
commit 761508c436

View File

@ -17,6 +17,7 @@ use App\Models\InvoiceInvitation;
use App\Models\PurchaseOrderInvitation;
use App\Models\QuoteInvitation;
use App\Models\RecurringInvoiceInvitation;
use App\Utils\Ninja;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Events\MessageSent;
use Illuminate\Support\Facades\Notification;
@ -41,6 +42,8 @@ class MailSentListener implements ShouldQueue
*/
public function handle(MessageSent $event)
{
if(!Ninja::isHosted());
return;
$message_id = $event->sent->getMessageId();