Skip to content

Commit

Permalink
update mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Apr 16, 2024
1 parent 1af7773 commit 3a283b1
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a283b1

Please sign in to comment.