Skip to content

Commit

Permalink
Merge pull request #408 from ymaheshwari1/fix/oms-api-client-method-u…
Browse files Browse the repository at this point in the history
…sage

Improved: updated the oms-api package to latest release and passed token explicitly in the client method when fetching ecom stores
  • Loading branch information
ravilodhi authored Oct 25, 2024
2 parents 4e897b0 + b28ba1e commit 1197b2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@hotwax/app-version-info": "^1.0.0",
"@hotwax/apps-theme": "^1.2.6",
"@hotwax/dxp-components": "^1.15.3",
"@hotwax/oms-api": "^1.14.0",
"@hotwax/oms-api": "^1.16.0",
"@ionic/core": "^7.6.0",
"@ionic/vue": "^7.6.0",
"@ionic/vue-router": "^7.6.0",
Expand Down
3 changes: 2 additions & 1 deletion src/store/modules/user/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ const actions: ActionTree<UserState, RootState> = {
* update current facility information
*/
async setFacility ({ commit, dispatch }, payload) {
const eComStore = await UserService.getEComStores(undefined, payload.facility.facilityId);
const token = store.getters['user/getUserToken'];
const eComStore = await UserService.getEComStores(token, payload.facility.facilityId);

commit(types.USER_CURRENT_ECOM_STORE_UPDATED, eComStore);
commit(types.USER_CURRENT_FACILITY_UPDATED, payload.facility);
Expand Down

0 comments on commit 1197b2e

Please sign in to comment.