Skip to content

Commit

Permalink
chore: supprime code commenté lors des tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ocruze committed Nov 27, 2023
1 parent e123a84 commit d38c717
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Services/EntrepotApi/CatalogsApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
}
}
}

0 comments on commit d38c717

Please sign in to comment.