From 9d3af5d77761d8e6c154a99df58037f33eddb4a3 Mon Sep 17 00:00:00 2001 From: Amirouche BOUBEKKI Date: Fri, 1 Dec 2023 16:44:32 +0100 Subject: [PATCH] fix(integrations): jira: cast url to string. --- api/routers/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routers/core.py b/api/routers/core.py index 7cf288fe6..7fc7ae633 100644 --- a/api/routers/core.py +++ b/api/routers/core.py @@ -333,7 +333,7 @@ def get_integration_status_github(context: schemas.CurrentContext = Depends(OR_c @app.post('/integrations/jira', tags=["integrations"]) def add_edit_jira_cloud(data: schemas.IssueTrackingJiraSchema = Body(...), context: schemas.CurrentContext = Depends(OR_context)): - if not data.url.endswith('atlassian.net'): + if not str(data.url).endswith('atlassian.net'): return {"errors": ["url must be a valid JIRA URL (example.atlassian.net)"]} error, integration = integrations_manager.get_integration(tool=integration_jira_cloud.PROVIDER, tenant_id=context.tenant_id,