diff --git a/app/Jobs/UpdateSite.php b/app/Jobs/UpdateSite.php index 8e039af..c7c3fdc 100644 --- a/app/Jobs/UpdateSite.php +++ b/app/Jobs/UpdateSite.php @@ -140,7 +140,10 @@ public function handle(): void } // Run the postupdate steps - $postUpdateResult = $connection->finalizeUpdate(["fromVersion" => $healthResult->cms_version]); + $postUpdateResult = $connection->finalizeUpdate([ + "fromVersion" => $healthResult->cms_version, + "updateFileName" => $prepareResult->filename, + ]); if (!$postUpdateResult->success) { throw new UpdateException( diff --git a/app/RemoteSite/Connection.php b/app/RemoteSite/Connection.php index c96888f..6afbf9a 100644 --- a/app/RemoteSite/Connection.php +++ b/app/RemoteSite/Connection.php @@ -23,7 +23,7 @@ * @method HealthCheckResponse checkHealth() * @method GetUpdateResponse getUpdate() * @method PrepareUpdateResponse prepareUpdate(array $data) - * @method FinalizeUpdateResponse finalizeUpdate(array $data) + * @method FinalizeUpdateResponse finalizeUpdate(array $data) * @method NotificationResponse notificationSuccess(array $data) * @method NotificationResponse notificationFailed(array $data) */ diff --git a/app/RemoteSite/Responses/PrepareUpdate.php b/app/RemoteSite/Responses/PrepareUpdate.php index 3efc4c1..6c22aca 100644 --- a/app/RemoteSite/Responses/PrepareUpdate.php +++ b/app/RemoteSite/Responses/PrepareUpdate.php @@ -8,7 +8,8 @@ class PrepareUpdate extends BaseDTO implements ResponseInterface { public function __construct( public string $password, - public int $filesize + public int $filesize, + public ?string $filename = null ) { } }