Skip to content

Commit b252150

Browse files
committed
change the logical expression for comparing the last sync
1 parent 66c0e8c commit b252150

File tree

1 file changed

+1
-1
lines changed
  • airbyte-integrations/connectors/source-stripe/source_stripe

1 file changed

+1
-1
lines changed

airbyte-integrations/connectors/source-stripe/source_stripe/streams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def shouldFetchFromOriginalResource (self,stream_state):
198198
durationInDaysFromLastSync = duration.days
199199
# If last state is not present or the main sync didn't complete or the last sync was more than 30 days ago
200200
# Fetch data from original stream else fetch data from events
201-
shouldResetState = durationInDaysFromLastSync > 30
201+
shouldResetState = durationInDaysFromLastSync >= 30
202202
return hasState == False or self.completed is False or shouldResetState
203203
def read_records(self, stream_slice, stream_state, **kwargs) -> Iterable[Mapping[str, Any]]:
204204
shouldFetchFromOriginalResource = self.shouldFetchFromOriginalResource(stream_state)

0 commit comments

Comments
 (0)