fix: duplicate call to collection creation.

This commit is contained in:
Darshan 2025-06-12 14:40:33 +05:30
parent db128d1fb4
commit 9334b98308

View file

@ -102,8 +102,6 @@ class Create extends Action
'name' => $name,
'search' => \implode(' ', [$collectionId, $name]),
]));
$dbForProject->createCollection('database_' . $database->getSequence() . '_collection_' . $collection->getSequence(), permissions: $permissions, documentSecurity: $documentSecurity);
} catch (DuplicateException) {
throw new Exception($this->getDuplicateException());
} catch (LimitException) {