1
0
Fork 0
mirror of synced 2024-07-12 18:05:55 +12:00

feat: update naming convention

This commit is contained in:
Christy Jacob 2022-07-16 11:08:36 +05:30
parent 90c615075e
commit 641c4f1bde

View file

@ -85,7 +85,7 @@ App::post('/v1/projects')
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([
'$id' => $projectId,
@ -161,7 +161,7 @@ App::post('/v1/projects')
$dbForProject->createCollection($key, $attributes, $indexes);
}
call_user_func($returnDatabase);
call_user_func($returnDB);
$response->setStatusCode(Response::STATUS_CODE_CREATED);
$response->dynamic($project, Response::MODEL_PROJECT);