diff --git a/app/Notifications/Application/DeploymentSuccess.php b/app/Notifications/Application/DeploymentSuccess.php index 8a409aa94..322df5cec 100644 --- a/app/Notifications/Application/DeploymentSuccess.php +++ b/app/Notifications/Application/DeploymentSuccess.php @@ -44,9 +44,11 @@ class DeploymentSuccess extends Notification implements ShouldQueue public function via(object $notifiable): array { $channels = setNotificationChannels($notifiable, 'deployments'); - $channels = array_filter($channels, function ($channel) { - return $channel !== 'App\Notifications\Channels\EmailChannel'; - }); + if (isCloud()) { + $channels = array_filter($channels, function ($channel) { + return $channel !== 'App\Notifications\Channels\EmailChannel'; + }); + } return $channels; }