Skip to content

Commit

Permalink
Reverted: unused job parameter 'SinceId' and unused commit argument i…
Browse files Browse the repository at this point in the history
…n action (#356)
  • Loading branch information
amansinghbais committed Jul 10, 2024
1 parent bb9d535 commit 1ada9be
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/components/ShopActionsPopover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/channel/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const actions: ActionTree<ChannelState, RootState> = {
commit(types.CHANNEL_INVENTORY_CHANNELS_UPDATED, groups);
},

async fetchShopifyConfigs ({ commit }) {
async fetchShopifyConfigs () {
let shopifyConfigs = [];

try {
Expand Down
2 changes: 0 additions & 2 deletions src/views/InventoryChannels.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1ada9be

Please sign in to comment.