Skip to content

Commit

Permalink
Merge pull request #629 from culturecreates/bugfix/issue-taxonomy-pag…
Browse files Browse the repository at this point in the history
…ination-temporary-fix

fix: added page number and limit to taxonomy get api
  • Loading branch information
AbhishekPAnil authored Sep 28, 2023
2 parents 119f22f + 199db13 commit d7fbbca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/taxonomy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const taxonomyApi = createApi({
keepUnusedDataFor: 10,
endpoints: (builder) => ({
getAllTaxonomy: builder.query({
query: ({ calendarId, search = '', taxonomyClass, includeConcepts }) => ({
url: `taxonomy?search=${search}&taxonomy-class=${taxonomyClass}&include-concepts=${includeConcepts}`,
query: ({ calendarId, search = '', taxonomyClass, includeConcepts, page = 1, limit = 200 }) => ({
url: `taxonomy?search=${search}&taxonomy-class=${taxonomyClass}&include-concepts=${includeConcepts}&page=${page}&limit=${limit}`,
headers: {
'calendar-id': calendarId,
},
Expand Down

0 comments on commit d7fbbca

Please sign in to comment.