From 3a283b12bed2109ca0870fc7c34275b3ad1b2cff Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 16 Apr 2024 17:14:57 -0400 Subject: [PATCH] update mypy --- .../data_imports/workflow_activities/import_data.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/posthog/temporal/data_imports/workflow_activities/import_data.py b/posthog/temporal/data_imports/workflow_activities/import_data.py index 5872edf4f5777..9c78555dfe93c 100644 --- a/posthog/temporal/data_imports/workflow_activities/import_data.py +++ b/posthog/temporal/data_imports/workflow_activities/import_data.py @@ -124,11 +124,10 @@ async def import_data_activity(inputs: ImportDataActivityInputs) -> Tuple[TSchem elif model.pipeline.source_type == ExternalDataSource.Type.ZENDESK: from posthog.temporal.data_imports.pipelines.zendesk.helpers import zendesk_support - credentials = ZendeskCredentialsToken( - model.pipeline.job_inputs.get("zendesk_subdomain"), - model.pipeline.job_inputs.get("zendesk_email_address"), - model.pipeline.job_inputs.get("zendesk_api_key"), - ) + credentials = ZendeskCredentialsToken() + credentials.token = model.pipeline.job_inputs.get("zendesk_api_key") + credentials.subdomain = model.pipeline.job_inputs.get("zendesk_subdomain") + credentials.email = model.pipeline.job_inputs.get("zendesk_email_address") data_support = zendesk_support(credentials=credentials, endpoints=tuple(endpoints), team_id=inputs.team_id) # Uncomment to support zendesk chat and talk