From e171a74116f27bef78a167fb19f9089031a95269 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Fri, 1 Jul 2022 12:42:29 +0200 Subject: [PATCH] feat(api): autocomplete accept unsupported types --- api/routers/core.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/routers/core.py b/api/routers/core.py index 24a2c3295..12ef38d98 100644 --- a/api/routers/core.py +++ b/api/routers/core.py @@ -142,8 +142,6 @@ def events_search(projectId: int, q: str, return {"data": []} if live: return assist.autocomplete(project_id=projectId, q=q, key=type.value if type is not None else None) - if isinstance(type, str): - return {"errors": ["Unsupported type"]} if type in [schemas.FetchFilterType._url]: type = schemas.EventType.request elif type in [schemas.GraphqlFilterType._name]: