Skip to content

Commit 46e3f75

Browse files
committed
fix add post to collection
1 parent 220529f commit 46e3f75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Ushahidi/Modules/V5/Http/Controllers/CollectionPostController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class CollectionPostController extends V5Controller
2626
*/
2727
private function checkCollectionIsFound(int $collection_id)
2828
{
29-
return $this->queryBus->handle(new FetchCollectionByIdQuery($collection_id));
29+
$find_collection_query = new FetchCollectionByIdQuery($collection_id);
30+
$find_collection_query->addOnlyValues(['id'], [], [], []);
31+
return $this->queryBus->handle($find_collection_query);
3032
}
3133

3234
/**

0 commit comments

Comments
 (0)