Skip to content

Commit

Permalink
Fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
lgomezm committed Mar 11, 2022
1 parent 159c313 commit 0ed6e56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ def next_page_token(self, response: requests.Response) -> Optional[Mapping[str,
# https://developers.hubspot.com/docs/api/crm/search. We stop getting data at 10,000, so that
# the new sync starts a new query with a more recent cursor value.
after = int(response["paging"]["next"]["after"])
if after < 10000:
if not self.state or after < 10000:
params["after"] = after
payload["after"] = after
return {"params": params, "payload": payload}
Expand Down

0 comments on commit 0ed6e56

Please sign in to comment.