feat: refactoring classes

This commit is contained in:
Christy Jacob
2022-08-24 20:52:54 +05:30
parent 85bfdd8f54
commit 9cfefe58bf
7 changed files with 40 additions and 60 deletions
+1 -2
View File
@@ -120,8 +120,7 @@ App::post('/v1/projects')
'database' => $pdo->getName()
]));
$dbForProject = DatabasePool::getDatabase($pdo->getConnection(), $cache);
$dbForProject->setNamespace("_{$project->getInternalId()}");
$dbForProject = DatabasePool::getDatabase($pdo->getConnection(), $cache, "_{$project->getInternalId()}");
$dbForProject->create(App::getEnv('_APP_DB_SCHEMA', 'appwrite'));
$audit = new Audit($dbForProject);