Skip to content

Commit 4dc5873

Browse files
committed
pass update filename to finalize task
1 parent 2336977 commit 4dc5873

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
@@ -140,7 +140,10 @@ public function handle(): void
140140
}
141141

142142
// Run the postupdate steps
143-
$postUpdateResult = $connection->finalizeUpdate(["fromVersion" => $healthResult->cms_version]);
143+
$postUpdateResult = $connection->finalizeUpdate([
144+
"fromVersion" => $healthResult->cms_version,
145+
"updateFileName" => $prepareResult->filename,
146+
]);
144147

145148
if (!$postUpdateResult->success) {
146149
throw new UpdateException(

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)