From fd6c13bfa0acf8a705894b8a2fefe38229d2c1b9 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 7 May 2025 16:21:26 +0300 Subject: [PATCH] Update CRM Owners getAll method --- lib/Discovery/Crm/Owners/Discovery.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Discovery/Crm/Owners/Discovery.php b/lib/Discovery/Crm/Owners/Discovery.php index 554275f19..67f0d8131 100644 --- a/lib/Discovery/Crm/Owners/Discovery.php +++ b/lib/Discovery/Crm/Owners/Discovery.php @@ -10,13 +10,12 @@ */ class Discovery extends DiscoveryBase { - public function getAll(): array + public function getAll(?string $email = null, ?string $after = null, bool $archived = false): array { $owners = []; - $after = null; do { - $page = $this->OwnersApi()->getPage(null, $after, 100); + $page = $this->OwnersApi()->getPage($email, $after, 100, $archived); $owners = array_merge($owners, $page->getResults());