Skip to content

Commit 275049e

Browse files
authored
provide target version for notifications (#38)
1 parent f902f96 commit 275049e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Jobs/UpdateSite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function handle(): void
144144
}
145145

146146
// Notify users
147-
$connection->notificationSuccess(["fromVersion" => $healthResult->cms_version]);
147+
$connection->notificationSuccess(["fromVersion" => $healthResult->cms_version, "toVersion" => $this->targetVersion]);
148148

149149
// Trigger site health check to write the update version back to the db
150150
CheckSiteHealth::dispatch($this->site);
@@ -213,7 +213,7 @@ public function failed(\Exception $exception): void
213213
$connection = $this->site->connection;
214214

215215
// Notify users
216-
$connection->notificationFailed(["fromVersion" => $this->site->cms_version]);
216+
$connection->notificationFailed(["fromVersion" => $this->site->cms_version, "toVersion" => $this->targetVersion]);
217217

218218
// We log any issues during the update to the DB
219219
$this->site->updates()->create([

0 commit comments

Comments
 (0)