Skip to content

Commit

Permalink
Merge pull request #98 from nicgirault/populate-context
Browse files Browse the repository at this point in the history
fix: fix search ignored
  • Loading branch information
nicgirault authored Sep 18, 2023
2 parents 0e50a3b + 4b701b2 commit de62308
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 de62308

Please sign in to comment.