An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(notifications): hetzner deletion failure channel name
peaklabs-dev5303ff12460e
diff --git a/app/Notifications/Server/HetznerDeletionFailed.php b/app/Notifications/Server/HetznerDeletionFailed.phpindex bb452b054b..a109a4360d 100644--- a/app/Notifications/Server/HetznerDeletionFailed.php+++ b/app/Notifications/Server/HetznerDeletionFailed.php@@ -17,8 +17,7 @@ class HetznerDeletionFailed extends CustomEmailNotificationpublic function via(object $notifiable): array{-- return $notifiable->getEnabledChannels('hetzner_deletion_failed');+ return $notifiable->getEnabledChannels('hetzner_deletion_failure');}public function toMail(): MailMessagediff --git a/tests/Unit/HetznerDeletionFailedNotificationTest.php b/tests/Unit/HetznerDeletionFailedNotificationTest.phpindex 22d5e80db3..bcd3f294ee 100644--- a/tests/Unit/HetznerDeletionFailedNotificationTest.php+++ b/tests/Unit/HetznerDeletionFailedNotificationTest.php@@ -19,7 +19,7 @@ it('can be instantiated with correct properties', function () {->and($notification->errorMessage)->toBe('Hetzner API error: Server not found');});-it('uses hetzner_deletion_failed event for channels', function () {+it('uses the always-send hetzner_deletion_failure event for channels', function () {$notification = new HetznerDeletionFailed(hetznerServerId: 12345,teamId: 1,@@ -28,7 +28,7 @@ it('uses hetzner_deletion_failed event for channels', function () {$mockNotifiable = Mockery::mock();$mockNotifiable->shouldReceive('getEnabledChannels')- ->with('hetzner_deletion_failed')+ ->with('hetzner_deletion_failure')->once()->andReturn([]);