Skip to content

Commit 1894517

Browse files
committed
submit from version as request payload
1 parent a561046 commit 1894517

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Jobs/UpdateSite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function handle(): void
7979
}
8080

8181
// Run the postupdate steps
82-
if (!$connection->finalizeUpdate()->success) {
82+
if (!$connection->finalizeUpdate(["fromVersion" => $healthResult->cms_version])->success) {
8383
throw new UpdateException(
8484
"finalize",
8585
"Update for site failed in postprocessing: " . $this->site->id

app/RemoteSite/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* @method HealthCheckResponse checkHealth()
2222
* @method GetUpdateResponse getUpdate()
2323
* @method PrepareUpdateResponse prepareUpdate(array<string,string> $data)
24-
* @method FinalizeUpdateResponse finalizeUpdate()
24+
* @method FinalizeUpdateResponse finalizeUpdate(array<string,string> $data)
2525
*/
2626
class Connection
2727
{

0 commit comments

Comments
 (0)