From 331b85c57e56f17167029e2492fce903a87552f9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 28 Jul 2023 12:51:26 +0200 Subject: [PATCH] fix: null fqdn notifications --- app/Notifications/Application/DeploymentFailed.php | 1 - app/Notifications/Application/DeploymentSuccess.php | 2 +- .../views/livewire/notifications/discord-settings.blade.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Notifications/Application/DeploymentFailed.php b/app/Notifications/Application/DeploymentFailed.php index b279d396a..053f432eb 100644 --- a/app/Notifications/Application/DeploymentFailed.php +++ b/app/Notifications/Application/DeploymentFailed.php @@ -31,7 +31,6 @@ class DeploymentFailed extends Notification implements ShouldQueue $this->application = $application; $this->deployment_uuid = $deployment_uuid; $this->preview = $preview; - $this->application_name = data_get($application, 'name'); $this->project_uuid = data_get($application, 'environment.project.uuid'); $this->environment_name = data_get($application, 'environment.name'); diff --git a/app/Notifications/Application/DeploymentSuccess.php b/app/Notifications/Application/DeploymentSuccess.php index da9c7c649..1821a1bde 100644 --- a/app/Notifications/Application/DeploymentSuccess.php +++ b/app/Notifications/Application/DeploymentSuccess.php @@ -24,7 +24,7 @@ class DeploymentSuccess extends Notification implements ShouldQueue public string|null $deployment_url = null; public string $project_uuid; public string $environment_name; - public string $fqdn; + public string|null $fqdn; public function __construct(Application $application, string $deployment_uuid, ApplicationPreview|null $preview = null) { diff --git a/resources/views/livewire/notifications/discord-settings.blade.php b/resources/views/livewire/notifications/discord-settings.blade.php index fbc17cb94..ab1481bc3 100644 --- a/resources/views/livewire/notifications/discord-settings.blade.php +++ b/resources/views/livewire/notifications/discord-settings.blade.php @@ -15,7 +15,7 @@
-