Skip to content

Commit b002841

Browse files
committed
use filename in finaliez call
1 parent 0426b93 commit b002841

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/Jobs/UpdateSite.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ public function handle(): void
121121
}
122122

123123
// Run the postupdate steps
124-
if (!$connection->finalizeUpdate(["fromVersion" => $healthResult->cms_version])->success) {
124+
if (!$connection->finalizeUpdate([
125+
"fromVersion" => $healthResult->cms_version,
126+
"updateFileName" => $prepareResult->filename
127+
])->success) {
125128
throw new UpdateException(
126129
"finalize",
127130
"Update for site failed in postprocessing: " . $this->site->id

app/RemoteSite/Responses/PrepareUpdate.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ class PrepareUpdate extends BaseDTO implements ResponseInterface
88
{
99
public function __construct(
1010
public string $password,
11-
public int $filesize
11+
public int $filesize,
12+
public ?string $filename = null
1213
) {
1314
}
1415
}

0 commit comments

Comments
 (0)