mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix database override
This commit is contained in:
parent
3001cac2ba
commit
1787e57448
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ App::post('/v1/projects')
|
|||
|
||||
$databaseOverride = App::getEnv('_APP_DATABASE_OVERRIDE', null);
|
||||
$index = array_search($databaseOverride, $databases);
|
||||
if ($index) {
|
||||
if ($index !== false) {
|
||||
$database = $databases[$index];
|
||||
} else {
|
||||
$database = $databases[array_rand($databases)];
|
||||
|
|
|
|||
Loading…
Reference in a new issue