Skip to content

Commit

Permalink
fix: fix search ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
nicgirault committed Sep 18, 2023
1 parent f7b6fd3 commit 4b701b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/getList/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@ export const parseQuery = async (query: any, filtersOption: FiltersOption) => {

const [from, to] = range ? JSON.parse(range) : [0, 10000]

const { q, ...filters } = JSON.parse(filter || '{}')

return {
offset: from,
limit: to - from + 1,
filter: await getFilter(filters, filtersOption),
filter: await getFilter(JSON.parse(filter || '{}'), filtersOption),
order: [sort ? JSON.parse(sort) : ['id', 'ASC']] as [[string, string]],
q,
}
}

Expand Down

0 comments on commit 4b701b2

Please sign in to comment.