From 1ada9be826c0cc3a269ad0cb40fb95d324ed0979 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Wed, 10 Jul 2024 10:29:40 +0530 Subject: [PATCH] Reverted: unused job parameter 'SinceId' and unused commit argument in action (#356) --- src/components/ShopActionsPopover.vue | 1 - src/store/modules/channel/actions.ts | 2 +- src/views/InventoryChannels.vue | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/ShopActionsPopover.vue b/src/components/ShopActionsPopover.vue index 4acc5c12..46340310 100644 --- a/src/components/ShopActionsPopover.vue +++ b/src/components/ShopActionsPopover.vue @@ -163,7 +163,6 @@ async function runServiceNow(job: any) { // checking if the runtimeData has productStoreId, and if present then adding it on root level job?.runtimeData?.productStoreId?.length >= 0 && (payload['productStoreId'] = job.status === "SERVICE_PENDING" ? job.productStoreId : store.state.user.currentEComStore.productStoreId) job?.priority && (payload['SERVICE_PRIORITY'] = job.priority.toString()) - job?.sinceId && (payload['sinceId'] = job.sinceId) // ShopifyConfig and ShopifyShop should be set based upon runtime data // If existing job is run now, copy as is else set the current shop of user diff --git a/src/store/modules/channel/actions.ts b/src/store/modules/channel/actions.ts index c0819dda..cf20821c 100644 --- a/src/store/modules/channel/actions.ts +++ b/src/store/modules/channel/actions.ts @@ -71,7 +71,7 @@ const actions: ActionTree = { commit(types.CHANNEL_INVENTORY_CHANNELS_UPDATED, groups); }, - async fetchShopifyConfigs ({ commit }) { + async fetchShopifyConfigs () { let shopifyConfigs = []; try { diff --git a/src/views/InventoryChannels.vue b/src/views/InventoryChannels.vue index 9bcd5ec0..26d96ccd 100644 --- a/src/views/InventoryChannels.vue +++ b/src/views/InventoryChannels.vue @@ -449,7 +449,6 @@ async function scheduleService(job: any) { job?.runtimeData?.productStoreId?.length >= 0 && (payload['productStoreId'] = job.productStoreId) job?.priority && (payload['SERVICE_PRIORITY'] = job.priority.toString()) job?.runTime && (payload['SERVICE_TIME'] = job.runTime.toString()) - job?.sinceId && (payload['sinceId'] = job.sinceId) try { resp = await ChannelService.scheduleJob({ ...payload }); @@ -479,7 +478,6 @@ async function updateJob(job: any) { } as any job?.runTime && (payload['runTime'] = job.runTime) - job?.sinceId && (payload['sinceId'] = job.sinceId) job?.jobName && (payload['jobName'] = job.jobName) try {