get project db key by region
This commit is contained in:
parent
d09528a0cd
commit
3071a0fba4
1 changed files with 5 additions and 5 deletions
|
@ -129,11 +129,6 @@ App::post('/v1/projects')
|
|||
$dsn = $databases[array_rand($databases)];
|
||||
}
|
||||
|
||||
var_dump([
|
||||
'region' => $region,
|
||||
'dsn' => $dsn,
|
||||
]);
|
||||
|
||||
if ($projectId === 'console') {
|
||||
throw new Exception(Exception::PROJECT_RESERVED_PROJECT, "'console' is a reserved project.");
|
||||
}
|
||||
|
@ -151,6 +146,11 @@ App::post('/v1/projects')
|
|||
}
|
||||
}
|
||||
|
||||
var_dump([
|
||||
'region' => $region,
|
||||
'dsn' => $dsn,
|
||||
]);
|
||||
|
||||
try {
|
||||
$project = $dbForConsole->createDocument('projects', new Document([
|
||||
'$id' => $projectId,
|
||||
|
|
Loading…
Reference in a new issue