1
0
Fork 0
mirror of synced 2024-07-08 07:55:48 +12:00

Extract db from list while backing

This commit is contained in:
shimon 2023-06-02 11:06:35 +03:00
parent ea8804fd52
commit 071b2e5826

View file

@ -98,6 +98,7 @@ App::post('/v1/projects')
/**
* Extract db from list while backing
*/
if (count($databases) > 1) {
$now = new \DateTime();
foreach ($databases as $pos => $database) {
$backup = $backups[$pos];
@ -108,7 +109,7 @@ App::post('/v1/projects')
unset($databases[$pos]);
}
}
}
$database = $databases[array_rand($databases)];
if ($projectId === 'console') {