Skip to content

Commit

Permalink
correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
sgandhi1311 committed Dec 11, 2023
1 parent a8ef253 commit 605c0b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tap_hubspot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ def generate_custom_streams(mode, catalog=None):

elif mode == "SYNC":
custom_objects = [custom_object["name"] for custom_object in gen_request_custom_objects("custom_objects_schema", custom_objects_schema_url, {}, 'results', "paging")]
if len(custom_object) > 0:
if len(custom_objects) > 0:
for stream in catalog["streams"]:
if stream["tap_stream_id"] in custom_objects:
STREAMS.append(Stream(stream["tap_stream_id"], sync_custom_object_records, ['id'], 'updatedAt', 'INCREMENTAL'))
Expand Down

0 comments on commit 605c0b5

Please sign in to comment.