Skip to content

Commit 021e0d9

Browse files
Merge pull request #489 from HubSpot/feature/updateNullableOptions
Update CRM Owners getAll method
2 parents afaabf9 + fd6c13b commit 021e0d9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/Discovery/Crm/Owners/Discovery.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@
1010
*/
1111
class Discovery extends DiscoveryBase
1212
{
13-
public function getAll(): array
13+
public function getAll(?string $email = null, ?string $after = null, bool $archived = false): array
1414
{
1515
$owners = [];
16-
$after = null;
1716

1817
do {
19-
$page = $this->OwnersApi()->getPage(null, $after, 100);
18+
$page = $this->OwnersApi()->getPage($email, $after, 100, $archived);
2019

2120
$owners = array_merge($owners, $page->getResults());
2221

0 commit comments

Comments
 (0)