Skip to content

Commit

Permalink
Merge pull request #202 from ymaheshwari1/fix/schedule-value
Browse files Browse the repository at this point in the history
Fixed: case to have a default value for cronExpression when updating group status and cron expresssion is not present
  • Loading branch information
ymaheshwari1 authored Apr 22, 2024
2 parents 6eb1dc0 + 419e0da commit 1f817d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/BrokeringRoute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,14 @@ async function updateGroupStatus(event: CustomEvent) {
const payload = {
routingGroupId: props.routingGroupId,
paused: job.value.paused
paused: job.value.paused,
cronExpression: job.value.cronExpression || "0 0 0 * * ?"
}
try {
const resp = await OrderRoutingService.scheduleBrokering(payload)
if(!hasError(resp)){
job.value.cronExpression = job.value.cronExpression || "0 0 0 * * ?"
showToast(translate("Group status updated"))
} else {
throw resp.data
Expand Down

0 comments on commit 1f817d9

Please sign in to comment.