mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: update incorrect method call
This commit is contained in:
1 parent
808f682fa7
commit
3dee8d6ecd
1 file changed
+3
-3
@@ -180,9 +180,9 @@ App::post('/v1/projects')
|
||||
*/
|
||||
$mod = 20;
|
||||
if ($project->getInternalId() % $mod === 0 && $selfHostedIndex !== false) {
|
||||
$database = $databaseSelfHosted;
|
||||
$project->setAttribute('database', $databaseSelfHosted);
|
||||
$dbForConsole->updateDocument('projects', $project);
|
||||
$database = $databaseSelfHosted;
|
||||
$project->setAttribute('database', $database);
|
||||
$dbForConsole->updateDocument('projects', $project->getId(), $project);
|
||||
}
|
||||
|
||||
$dbForProject = new Database($pools->get($database)->pop()->getResource(), $cache);
|
||||
|
||||
Reference in new issue
Block a user