mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Updated project init
This commit is contained in:
@@ -96,10 +96,10 @@ App::post('/v1/projects')
|
||||
$dbForExternal->setNamespace('project_' . $project->getId() . '_external');
|
||||
$dbForExternal->create();
|
||||
|
||||
$audit = new Audit($dbForConsole);
|
||||
$audit = new Audit($dbForInternal);
|
||||
$audit->setup();
|
||||
|
||||
$adapter = new TimeLimit("", 0, 1, $dbForConsole);
|
||||
$adapter = new TimeLimit("", 0, 1, $dbForInternal);
|
||||
$adapter->setup();
|
||||
|
||||
foreach ($collections as $key => $collection) {
|
||||
@@ -128,7 +128,7 @@ App::post('/v1/projects')
|
||||
]);
|
||||
}
|
||||
|
||||
$dbForConsole->createCollection($key, $attributes, $indexes);
|
||||
$dbForInternal->createCollection($key, $attributes, $indexes);
|
||||
}
|
||||
|
||||
$consoleDB->createNamespace($project->getId());
|
||||
|
||||
Reference in New Issue
Block a user