fixing cron dependancies

This commit is contained in:
mr
2024-08-08 11:14:24 +02:00
parent f45ad91687
commit 580b492fd3
2 changed files with 13 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ type WorkflowSchedule struct {
Name string `json:"name" bson:"name" validate:"required"`
Start *time.Time `json:"start" bson:"start" validate:"required"`
End *time.Time `json:"end,omitempty" bson:"end,omitempty"`
Cron string `json:"cron,omitempty" bson:"cron,omitempty"`
Cron string `json:"cron,omitempty" bson:"cron,omitempty"` // ss mm hh dd MM dw task
}
func (ws *WorkflowSchedule) GetAllDates() (timetable []time.Time) {