Skip to content

Commit

Permalink
add extra analyzing conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
hasa1K committed Apr 25, 2024
1 parent bca8291 commit 4a7b6a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sqle/api/controller/v2/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -1021,14 +1021,14 @@ func UpdateWorkflowScheduleV2(c echo.Context) error {
return controller.JSONBaseErrorReq(c, err)
}

if req.ScheduleTime == nil {
if err := cancelNotify(uint(taskIdUint)); err != nil {
if req.IsNotify != nil && *req.IsNotify && req.NotifyType != nil && req.ScheduleTime != nil {
if err := createNotifyRecord(*req.NotifyType, curTaskRecord); err != nil {
return controller.JSONBaseErrorReq(c, err)
}
}

if req.IsNotify != nil && *req.IsNotify && req.NotifyType != nil {
if err := createNotifyRecord(*req.NotifyType, curTaskRecord); err != nil {
if req.ScheduleTime == nil {
if err := cancelNotify(uint(taskIdUint)); err != nil {
return controller.JSONBaseErrorReq(c, err)
}
}
Expand Down

0 comments on commit 4a7b6a0

Please sign in to comment.