sync with feat-migration

This commit is contained in:
shimon 2024-10-21 18:58:11 +03:00
parent 3ff5472543
commit e687c64ca0

View file

@ -241,6 +241,7 @@ App::post('/v1/projects')
$attributes = \array_map(fn ($attribute) => new Document($attribute), $collection['attributes']);
$indexes = \array_map(fn (array $index) => new Document($index), $collection['indexes']);
try {
$dbForProject->createCollection($key, $attributes, $indexes);
} catch (Duplicate) {