From 8d14d0e8c0cd7371e0a4832e68ae4f2526ac0c4b Mon Sep 17 00:00:00 2001 From: David Jardin Date: Mon, 11 Aug 2025 16:51:27 +0200 Subject: [PATCH] provide target version for notifications --- app/Jobs/UpdateSite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/UpdateSite.php b/app/Jobs/UpdateSite.php index f529ba7..af92c46 100644 --- a/app/Jobs/UpdateSite.php +++ b/app/Jobs/UpdateSite.php @@ -144,7 +144,7 @@ public function handle(): void } // Notify users - $connection->notificationSuccess(["fromVersion" => $healthResult->cms_version]); + $connection->notificationSuccess(["fromVersion" => $healthResult->cms_version, "toVersion" => $this->targetVersion]); // Trigger site health check to write the update version back to the db CheckSiteHealth::dispatch($this->site); @@ -213,7 +213,7 @@ public function failed(\Exception $exception): void $connection = $this->site->connection; // Notify users - $connection->notificationFailed(["fromVersion" => $this->site->cms_version]); + $connection->notificationFailed(["fromVersion" => $this->site->cms_version, "toVersion" => $this->targetVersion]); // We log any issues during the update to the DB $this->site->updates()->create([