Skip to content

Commit 4de09d5

Browse files
committed
compare status codes
1 parent c95d342 commit 4de09d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/Jobs/UpdateSite.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public function handle(): void
7171
if (!$connection->finalizeUpdate()->success) {
7272
throw new \Exception("Update for site failed in postprocessing: " . $this->site->id);
7373
}
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+
}
7479
}
7580

7681
protected function performExtraction(PrepareUpdate $prepareResult): void

0 commit comments

Comments
 (0)