feat(api): funnels deflate filter-response

This commit is contained in:
Taha Yassine Kraiem 2022-02-07 23:05:07 +01:00
parent a86961af3a
commit f161ae62e1

View file

@ -772,7 +772,7 @@ def get_funnel_issue_sessions(projectId: int, funnelId: int, issueId: str,
@app.get('/{projectId}/funnels/{funnelId}', tags=["funnels"])
def get_funnel(projectId: int, funnelId: int, context: schemas.CurrentContext = Depends(OR_context)):
data = funnels.get(funnel_id=funnelId, project_id=projectId, user_id=context.user_id)
data = funnels.get(funnel_id=funnelId, project_id=projectId, user_id=context.user_id, flatten=False)
if data is None:
return {"errors": ["funnel not found"]}
return {"data": data}