Skip to content

Commit

Permalink
Merge pull request #297 from hotwax/#296_release_api_product_store
Browse files Browse the repository at this point in the history
Improved: Passed selected productStoreId while uploading file for releasing, cancelling or updating promise date (#296).
  • Loading branch information
ravilodhi authored Sep 3, 2024
2 parents b7fb46e + e327287 commit 7b78c55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/services/OrderService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { api } from '@/adapter';
import store from '@/store';

const findOrder = async (payload: any): Promise<any> => {
return api({
Expand All @@ -20,7 +21,7 @@ const releaseItems = async (payload: any): Promise<any> => {
return api({
url: "uploadJsonFile",
method: "post",
data: payload.data,
data: {...payload.data, "productStoreId": store.state.user.currentEComStore.productStoreId},
headers: payload.headers
});
}
Expand All @@ -29,7 +30,7 @@ const cancelItems = async (payload: any): Promise<any> => {
return api({
url: "uploadJsonFile",
method: "post",
data: payload.data,
data: {...payload.data, "productStoreId": store.state.user.currentEComStore.productStoreId},
headers: payload.headers
});
}
Expand All @@ -38,7 +39,7 @@ const updatePromiseDateItems = async (payload: any): Promise<any> => {
return api({
url: "uploadJsonFile",
method: "post",
data: payload.data,
data: {...payload.data, "productStoreId": store.state.user.currentEComStore.productStoreId},
headers: payload.headers
});
}
Expand Down

0 comments on commit 7b78c55

Please sign in to comment.