Skip to content

Commit

Permalink
Fixed issue with contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Lehtinen committed Sep 26, 2023
1 parent 1787167 commit 2249428
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Groschen.php
Original file line number Diff line number Diff line change
Expand Up @@ -3337,11 +3337,14 @@ public function getContacts()
// Get the maximum amount
$response = $this->searchClient->get('v3/search/contacts', [
'query' => [
'q' => '',
'limit' => 1,
'$select' => 'id',
],
]);

$json = json_decode($response->getBody()->getContents());

$totalCount = $json->pagination->itemsTotalCount;

// Loop through all pages, maximum is 1000
Expand Down

0 comments on commit 2249428

Please sign in to comment.