feat: update naming convention
This commit is contained in:
parent
90c615075e
commit
641c4f1bde
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ App::post('/v1/projects')
|
||||||
throw new Exception("'console' is a reserved project.", 400, Exception::PROJECT_RESERVED_PROJECT);
|
throw new Exception("'console' is a reserved project.", 400, Exception::PROJECT_RESERVED_PROJECT);
|
||||||
}
|
}
|
||||||
|
|
||||||
[$dbForProject, $returnDatabase, $dbName] = $dbPool->getAnyFromPool($cache);
|
[$dbForProject, $returnDB, $dbName] = $dbPool->getAnyFromPool($cache);
|
||||||
|
|
||||||
$project = $dbForConsole->createDocument('projects', new Document([
|
$project = $dbForConsole->createDocument('projects', new Document([
|
||||||
'$id' => $projectId,
|
'$id' => $projectId,
|
||||||
|
@ -161,7 +161,7 @@ App::post('/v1/projects')
|
||||||
$dbForProject->createCollection($key, $attributes, $indexes);
|
$dbForProject->createCollection($key, $attributes, $indexes);
|
||||||
}
|
}
|
||||||
|
|
||||||
call_user_func($returnDatabase);
|
call_user_func($returnDB);
|
||||||
|
|
||||||
$response->setStatusCode(Response::STATUS_CODE_CREATED);
|
$response->setStatusCode(Response::STATUS_CODE_CREATED);
|
||||||
$response->dynamic($project, Response::MODEL_PROJECT);
|
$response->dynamic($project, Response::MODEL_PROJECT);
|
||||||
|
|
Loading…
Reference in a new issue