Skip to content

Commit

Permalink
Improved: Passed selected productStoreId while uploading file for rel…
Browse files Browse the repository at this point in the history
…easing, cancelling or updating promise date (#296).
  • Loading branch information
ravilodhi committed Sep 3, 2024
1 parent b7fb46e commit e327287
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 e327287

Please sign in to comment.