diff --git a/etl/hubspot/hubspotClient.py b/etl/hubspot/hubspotClient.py index f93a736c..ed456478 100644 --- a/etl/hubspot/hubspotClient.py +++ b/etl/hubspot/hubspotClient.py @@ -162,7 +162,7 @@ class HubspotClient: response: AssociationsPageResponse = associations_api.get_page( # type: ignore[reportUnknownMemberType] object_type="deals", object_id=deal_id, - to_object_type="0-420", # <-- use your exact custom object name slug here + to_object_type="0-420", # <-- to get an listing object limit=1, ) @@ -373,9 +373,7 @@ class HubspotClient: properties: dict[str, str] = cast(dict[str, str], product.properties) # type: ignore[reportUnknownMemberType] name: str = properties.get("name") or "" - price: str = ( - properties.get("price") or properties.get("hs_price") or "0" - ) + price: str = properties.get("price") or properties.get("hs_price") or "0" # Build line item payload line_item_input = SimplePublicObjectInput(