Merge pull request #1413 from coollabsio/next

Refactored database backup job to handle missing
This commit is contained in:
Andras Bacsai 2023-11-08 12:46:14 +01:00 committed by GitHub
commit c1dd05dcd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ public function handle(): void
if ($db) { if ($db) {
$databasesToBackup = str($db)->after('POSTGRES_DB=')->value(); $databasesToBackup = str($db)->after('POSTGRES_DB=')->value();
} else { } else {
throw new \Exception('POSTGRES_DB not found'); $databasesToBackup = $this->database->postgres_user;
} }
} else if ($databaseType === 'standalone-mysql') { } else if ($databaseType === 'standalone-mysql') {
$this->container_name = "{$this->database->name}-$serviceUuid"; $this->container_name = "{$this->database->name}-$serviceUuid";