From 3d0bf6b472cdc4dd6ad77514ffed99e3fbe7ffd2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 18 Jan 2024 14:03:51 +0100 Subject: [PATCH] Update resource name in notification messages --- app/Notifications/Container/ContainerStopped.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Notifications/Container/ContainerStopped.php b/app/Notifications/Container/ContainerStopped.php index ac218c5fe..7bab74934 100644 --- a/app/Notifications/Container/ContainerStopped.php +++ b/app/Notifications/Container/ContainerStopped.php @@ -37,12 +37,12 @@ class ContainerStopped extends Notification implements ShouldQueue public function toDiscord(): string { - $message = "Coolify: A resource has been stopped unexpectedly on {$this->server->name}"; + $message = "Coolify: A resource ($this->name) has been stopped unexpectedly on {$this->server->name}"; return $message; } public function toTelegram(): array { - $message = "Coolify: A resource has been stopped unexpectedly on {$this->server->name}"; + $message = "Coolify: A resource ($this->name) has been stopped unexpectedly on {$this->server->name}"; $payload = [ "message" => $message, ];