Skip to content

Commit

Permalink
Removed: unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ravilodhi committed Oct 11, 2024
1 parent ec4f45d commit c38915f
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/store/modules/shipment/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,31 +171,6 @@ const actions: ActionTree<ShipmentState, RootState> = {
showToast(translate("Something went wrong, please try again"));
}
emitter.emit("dismissLoader");



/* UploadService.uploadJsonFile(UploadService.prepareUploadJsonPayload({
uploadData,
fileName,
params
})).then(async (resp: any) => {
if (!hasError(resp)) {
resp = await ShipmentService.receiveShipment({
"shipmentId": payload.shipmentId,
"statusId": "PURCH_SHIP_RECEIVED"
})
console.log("=======resp==", resp);
if (resp.status == 200 && !hasError(resp)) {
showToast(translate("Shipment received successfully", { shipmentId: payload.shipmentId }))
}
emitter.emit("dismissLoader");
return resp;
} else {
throw resp.data;
}
}).catch(() => {
showToast(translate("Something went wrong, please try again"));
})*/
},

async receiveShipment ({ dispatch }, payload) {
Expand Down

0 comments on commit c38915f

Please sign in to comment.