fix(integrations): jira: cast url to string.
This commit is contained in:
parent
3dedeebdbe
commit
9d3af5d777
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue