diff --git a/internal/db/collection_define.go b/internal/db/collection_define.go index a8b9fe9abd..6eb8d9dddb 100644 --- a/internal/db/collection_define.go +++ b/internal/db/collection_define.go @@ -29,7 +29,7 @@ func (db *db) createCollections( ctx context.Context, newDefinitions []client.CollectionDefinition, ) ([]client.CollectionDefinition, error) { - returnDescriptions := make([]client.CollectionDefinition, len(newDefinitions)) + returnDescriptions := make([]client.CollectionDefinition, 0, len(newDefinitions)) existingDefinitions, err := db.getAllActiveDefinitions(ctx) if err != nil {