We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c95d342 commit 4de09d5Copy full SHA for 4de09d5
app/Jobs/UpdateSite.php
@@ -71,6 +71,11 @@ public function handle(): void
71
if (!$connection->finalizeUpdate()->success) {
72
throw new \Exception("Update for site failed in postprocessing: " . $this->site->id);
73
}
74
+
75
+ // Compare codes
76
+ if ($this->site->getFrontendStatus() !== $this->preUpdateCode) {
77
+ throw new \Exception("Status code has changed after update for site: " . $this->site->id);
78
+ }
79
80
81
protected function performExtraction(PrepareUpdate $prepareResult): void
0 commit comments