1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Updated project init

This commit is contained in:
Eldad Fux 2021-07-04 15:23:58 +03:00
parent 025b4e4e81
commit f69c4e3048

View file

@ -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());