Extract db from list while backing
This commit is contained in:
parent
ea8804fd52
commit
071b2e5826
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue