feat(chalice): fix errors sort

This commit is contained in:
Taha Yassine Kraiem 2023-01-31 12:17:10 +01:00
parent 2e80852e39
commit cd38efc255
2 changed files with 4 additions and 4 deletions

View file

@ -470,9 +470,9 @@ def search(data: schemas.SearchErrorsSchema, project_id, user_id):
sort = __get_sort_key('datetime')
if data.sort is not None:
sort = __get_sort_key(data.sort)
order = schemas.SortOrderType.desc
order = schemas.SortOrderType.desc.value
if data.order is not None:
order = data.order
order = data.order.value
extra_join = ""
params = {

View file

@ -477,9 +477,9 @@ def search(data: schemas.SearchErrorsSchema, project_id, user_id):
sort = __get_sort_key('datetime')
if data.sort is not None:
sort = __get_sort_key(data.sort)
order = schemas.SortOrderType.desc
order = schemas.SortOrderType.desc.value
if data.order is not None:
order = data.order
order = data.order.value
extra_join = ""
params = {