Skip to content

Commit

Permalink
Merge pull request #576 from amansinghbais/#561
Browse files Browse the repository at this point in the history
Improved: added orderByField in the payload for fetching product stores for the facilities (#561)
  • Loading branch information
ymaheshwari1 authored Jan 2, 2025
2 parents fb0dd1a + 629d336 commit 3416d2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ const actions: ActionTree<UserState, RootState> = {
facilityTypeId: "VIRTUAL_FACILITY",
facilityTypeId_not: "Y",
facilityId: facility.facilityId,
pageSize: 1
pageSize: 1,
orderByField: "sequenceNum asc, storeName asc"
})

if(!hasError(resp) && resp.data.length > 0) {
Expand All @@ -230,7 +231,8 @@ const actions: ActionTree<UserState, RootState> = {
parentFacilityTypeId_not: "Y",
facilityTypeId: "VIRTUAL_FACILITY",
facilityTypeId_not: "Y",
pageSize: 200
pageSize: 200,
orderByField: "sequenceNum asc, storeName asc"
})

if(!hasError(resp)) {
Expand Down

0 comments on commit 3416d2f

Please sign in to comment.