From aa7bc40f8508e3d050c1536dafb4cd5d5cc39347 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 11 Oct 2023 13:52:46 +0200 Subject: [PATCH] fix: send unreachable/revived notifications --- app/Jobs/ContainerStatusJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/ContainerStatusJob.php b/app/Jobs/ContainerStatusJob.php index 1ed74c750..c5c455472 100644 --- a/app/Jobs/ContainerStatusJob.php +++ b/app/Jobs/ContainerStatusJob.php @@ -53,7 +53,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted if ($serverUptimeCheckNumber >= $serverUptimeCheckNumberMax) { if ($this->server->unreachable_email_sent === false) { ray('Server unreachable, sending notification...'); - // $this->server->team->notify(new Unreachable($this->server)); + $this->server->team->notify(new Unreachable($this->server)); $this->server->update(['unreachable_email_sent' => true]); } $this->server->settings()->update([ @@ -85,7 +85,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted if (data_get($this->server, 'unreachable_email_sent') === true) { ray('Server is reachable again, sending notification...'); - // $this->server->team->notify(new Revived($this->server)); + $this->server->team->notify(new Revived($this->server)); $this->server->update(['unreachable_email_sent' => false]); } if (