mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Use queues for payment emails
This commit is contained in:
parent
9c16f10a5c
commit
8f2215ff6c
@ -10,6 +10,7 @@ use App\Events\QuoteInvitationWasApproved;
|
||||
use App\Events\PaymentWasCreated;
|
||||
use App\Services\PushService;
|
||||
use App\Jobs\SendNotificationEmail;
|
||||
use App\Jobs\SendPaymentEmail;
|
||||
use App\Notifications\PaymentCreated;
|
||||
|
||||
/**
|
||||
@ -125,7 +126,7 @@ class NotificationListener
|
||||
return;
|
||||
}
|
||||
|
||||
$this->contactMailer->sendPaymentConfirmation($event->payment);
|
||||
dispatch(new SendPaymentEmail($event->payment));
|
||||
$this->sendNotifications($event->payment->invoice, 'paid', $event->payment);
|
||||
|
||||
$this->pushService->sendNotification($event->payment->invoice, 'paid');
|
||||
|
Loading…
Reference in New Issue
Block a user