1
0
Fork 0
mirror of synced 2024-09-20 11:37:45 +12:00

get project db key by region

This commit is contained in:
shimon 2024-08-05 11:19:58 +03:00
parent d09528a0cd
commit 3071a0fba4

View file

@ -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,