diff --git a/src/Services/EntrepotApi/CatalogsApiService.php b/src/Services/EntrepotApi/CatalogsApiService.php index f155da6e..d9870e03 100644 --- a/src/Services/EntrepotApi/CatalogsApiService.php +++ b/src/Services/EntrepotApi/CatalogsApiService.php @@ -9,16 +9,14 @@ class CatalogsApiService extends AbstractEntrepotApiService */ public function getPublicCommunities(array $query = []): mixed { - $response = $this->request("GET", "catalogs/communities", [], $query, [], false, true, true); - - // TODO REACTIVER - // $contentRange = $response['headers']['content-range'][0]; - // $numPages = $this->getResultsPageCount($contentRange, $query['limit']); + $response = $this->request('GET', 'catalogs/communities', [], $query, [], false, true, true); + + $contentRange = $response['headers']['content-range'][0]; + $numPages = $this->getResultsPageCount($contentRange, $query['limit']); - $numPages = 4; return [ 'communities' => $response['content'], - 'numPages' => $numPages + 'numPages' => $numPages, ]; } -} \ No newline at end of file +}