From 17e81ab6bddab4bd6dd3df02655b79ce030a8c75 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 30 Apr 2024 15:06:53 +0200 Subject: [PATCH] Refactor setNotificationChannels method in DeploymentSuccess.php --- app/Notifications/Application/DeploymentSuccess.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/Notifications/Application/DeploymentSuccess.php b/app/Notifications/Application/DeploymentSuccess.php index 322df5cec..816dac19d 100644 --- a/app/Notifications/Application/DeploymentSuccess.php +++ b/app/Notifications/Application/DeploymentSuccess.php @@ -43,15 +43,8 @@ class DeploymentSuccess extends Notification implements ShouldQueue public function via(object $notifiable): array { - $channels = setNotificationChannels($notifiable, 'deployments'); - if (isCloud()) { - $channels = array_filter($channels, function ($channel) { - return $channel !== 'App\Notifications\Channels\EmailChannel'; - }); - } - return $channels; + return setNotificationChannels($notifiable, 'deployments'); } - public function toMail(): MailMessage { $mail = new MailMessage();