fix: issues

This commit is contained in:
rogeecn
2025-03-21 19:25:58 +08:00
parent e51acee8d8
commit 0015e2eee2
4 changed files with 17 additions and 41 deletions

View File

@@ -45,9 +45,7 @@ func Provide(opts ...opt.Option) error {
{{- end }}
{{ if eq .Mode "cronjob" }}
if _, err := __job.AddPeriodicJobs(obj); err != nil {
return nil, err
}
container.Later(func() error { return __job.AddPeriodicJobs(obj) })
{{- end}}
return obj, nil