mirror of
https://github.com/usual2970/certimate.git
synced 2025-07-28 21:24:28 +00:00
feat: rename , executionMethod
/type
to trigger
, crontab
to triggerCron
This commit is contained in:
@@ -33,7 +33,7 @@ func (s *WorkflowService) InitSchedule(ctx context.Context) error {
|
||||
}
|
||||
scheduler := app.GetScheduler()
|
||||
for _, workflow := range workflows {
|
||||
err := scheduler.Add(workflow.Id, workflow.Crontab, func() {
|
||||
err := scheduler.Add(workflow.Id, workflow.TriggerCron, func() {
|
||||
s.Run(ctx, &domain.WorkflowRunReq{
|
||||
Id: workflow.Id,
|
||||
})
|
||||
|
Reference in New Issue
Block a user