Skip to content

Commit

Permalink
fix add post to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Mh-Asmi committed Jan 15, 2025
1 parent 220529f commit 46e3f75
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class CollectionPostController extends V5Controller
*/
private function checkCollectionIsFound(int $collection_id)
{
return $this->queryBus->handle(new FetchCollectionByIdQuery($collection_id));
$find_collection_query = new FetchCollectionByIdQuery($collection_id);
$find_collection_query->addOnlyValues(['id'], [], [], []);
return $this->queryBus->handle($find_collection_query);
}

/**
Expand Down

0 comments on commit 46e3f75

Please sign in to comment.