diff --git a/tap_hubspot_beta/client_base.py b/tap_hubspot_beta/client_base.py index 5f7dd45..d521cab 100644 --- a/tap_hubspot_beta/client_base.py +++ b/tap_hubspot_beta/client_base.py @@ -159,11 +159,11 @@ def validate_response(self, response: requests.Response) -> None: @staticmethod def extract_type(field): field_type = field.get("type") - if field_type in ["string", "enumeration", "phone_number", "date", "json", "object_coordinates"]: + if field_type in ["string", "enumeration", "phone_number", "json", "object_coordinates"]: return th.StringType if field_type == "number": return th.StringType - if field_type == "datetime": + if field_type in ["datetime", "date"]: return th.DateTimeType if field_type == "bool": return th.BooleanType