mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix: guard disconnectVcs against stale deployment overwriting reconnected installation
This commit is contained in:
1 parent
317f7515bb
commit
f5bb65f50e
1 file changed
+2
-1
@@ -298,7 +298,8 @@ class Builds extends Action
|
||||
try {
|
||||
$github->initializeVariables($providerInstallationId, $privateKey, $githubAppId);
|
||||
} catch (\Exception $e) {
|
||||
if (\str_contains($e->getMessage(), 'Status: 404')) {
|
||||
if (\str_contains($e->getMessage(), 'Status: 404')
|
||||
&& $resource->getAttribute('installationId', '') === $installationId) {
|
||||
$this->disconnectVcs($resource, $dbForProject, $dbForPlatform);
|
||||
}
|
||||
throw $e;
|
||||
|
||||
Reference in new issue
Block a user