From db4252da6ae7af07812f9a6aa9ff9109bf131c18 Mon Sep 17 00:00:00 2001 From: Jon at Pie <52712862+jonpie@users.noreply.github.com> Date: Wed, 16 Oct 2019 16:26:16 -0600 Subject: [PATCH] Use correct pagination logic This should set an Operator to only pull records starting after the last one pulled. Otherwise its redundant --- hooks/stripe_hook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/stripe_hook.py b/hooks/stripe_hook.py index 570b301..53d09f1 100755 --- a/hooks/stripe_hook.py +++ b/hooks/stripe_hook.py @@ -49,7 +49,7 @@ def run_query(self, method_to_call = 'all' if replication_key_value: stripe_response = getattr(stripe_endpoint, method_to_call)( - ending_before=replication_key_value, **kwargs) + starting_after=replication_key_value, **kwargs) else: stripe_response = getattr(stripe_endpoint, method_to_call)(**kwargs)