check nil on schedule
This commit is contained in:
parent
3b1bd41638
commit
6e3069068c
@ -84,7 +84,7 @@ func (wfa *workflowMongoAccessor) execution(id string, realData *Workflow, delet
|
||||
}
|
||||
res, _, _ := wfa.LoadOne(id)
|
||||
r := res.(*Workflow)
|
||||
if r.Schedule.Start == realData.Schedule.Start && r.Schedule.End == realData.Schedule.End && r.Schedule.Cron == realData.Schedule.Cron {
|
||||
if r.Schedule != nil && r.Schedule.Start == realData.Schedule.Start && r.Schedule.End == realData.Schedule.End && r.Schedule.Cron == realData.Schedule.Cron {
|
||||
return 200, nil
|
||||
}
|
||||
if !realData.CheckBooking() {
|
||||
|
Loading…
Reference in New Issue
Block a user