From 8aeaabf03a8f91c9d396007f9576560a541a5bfe Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 31 Oct 2024 16:47:37 +1300 Subject: [PATCH] Fix merge --- app/controllers/api/projects.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/api/projects.php b/app/controllers/api/projects.php index 333f03b248..620fc2c8e2 100644 --- a/app/controllers/api/projects.php +++ b/app/controllers/api/projects.php @@ -269,9 +269,6 @@ App::post('/v1/projects') continue; } - $indexes = \array_map(function (array $index) { - return new Document($index); - }, $collection['indexes']); $attributes = \array_map(fn ($attribute) => new Document($attribute), $collection['attributes']); $indexes = \array_map(fn (array $index) => new Document($index), $collection['indexes']); @@ -288,7 +285,7 @@ App::post('/v1/projects') ])); } } - // } + } // Hook allowing instant project mirroring during migration // Outside of migration, hook is not registered and has no effect