From 7e37068fc0150b2d0591cdd372e6c2fbe6ae85e1 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 17 Aug 2023 16:26:55 +0200 Subject: [PATCH] send notification of autoupdate --- app/Actions/Server/UpdateCoolify.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.php index 8f81852d8..60d0f9a73 100644 --- a/app/Actions/Server/UpdateCoolify.php +++ b/app/Actions/Server/UpdateCoolify.php @@ -42,10 +42,12 @@ public function __invoke(bool $force) } $this->update(); } + send_internal_notification('InstanceAutoUpdateJob done on: ' . $this->server->ip . "(fqdn:{$this->server->fqdn})" . ' to version: ' . $this->latest_version . ' from version: ' . $this->current_version); return; - } catch (\Exception $e) { + } catch (\Exception $th) { ray('InstanceAutoUpdateJob failed'); - ray($e->getMessage()); + ray($th->getMessage()); + send_internal_notification('InstanceAutoUpdateJob failed: ' . $th->getMessage()); return; } }