From 899d506faa78332e7f2715dae1a8cf5a55a53c4b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 5 Jun 2024 15:34:25 +0200 Subject: [PATCH] disable internal notifications on the cloud --- app/Jobs/CheckLogDrainContainerJob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/CheckLogDrainContainerJob.php b/app/Jobs/CheckLogDrainContainerJob.php index 8776b67c3..376a691cc 100644 --- a/app/Jobs/CheckLogDrainContainerJob.php +++ b/app/Jobs/CheckLogDrainContainerJob.php @@ -80,9 +80,9 @@ class CheckLogDrainContainerJob implements ShouldQueue, ShouldBeEncrypted } } } catch (\Throwable $e) { - send_internal_notification("CheckLogDrainContainerJob failed on ({$this->server->id}) with: " . $e->getMessage()); + if (!isCloud()) send_internal_notification("CheckLogDrainContainerJob failed on ({$this->server->id}) with: " . $e->getMessage()); ray($e->getMessage()); - handleError($e); + return handleError($e); } } }