Skip to content

Commit 6c8a083

Browse files
committed
move health check
1 parent 5d840cb commit 6c8a083

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Jobs/UpdateSite.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ public function handle(): void
121121

122122
// Notify users
123123
$connection->notificationSuccess(["fromVersion" => $healthResult->cms_version]);
124+
125+
// Trigger site health check to write the update version back to the db
126+
CheckSiteHealth::dispatch($this->site);
124127
}
125128

126129
protected function performExtraction(PrepareUpdate $prepareResult): void
@@ -173,9 +176,6 @@ protected function performExtraction(PrepareUpdate $prepareResult): void
173176
'new_version' => $this->targetVersion,
174177
'result' => true
175178
]);
176-
177-
// Trigger site health check to write the update version back to the db
178-
CheckSiteHealth::dispatch($this->site);
179179
}
180180

181181
public function failed(\Exception $exception): void

0 commit comments

Comments
 (0)