Skip to content

Commit

Permalink
Merge branch 'main' into feature/PPF-463
Browse files Browse the repository at this point in the history
  • Loading branch information
Anahkiasen committed Jul 8, 2024
2 parents 20f1764 + ca20d72 commit f7f23c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Search/Sapi3/Sapi3SearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace App\Search\Sapi3;

use CultuurNet\SearchV3\Parameter\Id;
use CultuurNet\SearchV3\Parameter\Query;
use CultuurNet\SearchV3\SearchClientInterface;
use CultuurNet\SearchV3\SearchQuery;
Expand Down Expand Up @@ -35,9 +34,8 @@ public function findUiTPASOrganizers(string ...$ids): PagedCollection
return new PagedCollection();
}

foreach ($ids as $id) {
$searchQuery->addParameter(new Id($id));
}
$ids = array_map(fn (string $id) => sprintf('id:"%s"', $id), $ids);
$searchQuery->addParameter(new Query(implode(' OR ', $ids)));

return $this->searchClient->searchOrganizers($searchQuery);
}
Expand Down

0 comments on commit f7f23c8

Please sign in to comment.