update
This commit is contained in:
@@ -220,6 +220,7 @@ func init() {
|
||||
tasks := map[string]Cron{}
|
||||
for i := range crons {
|
||||
if strings.Contains(crons[i].Name, "sillyGirl") {
|
||||
Config.Req(CRONS, DELETE, []byte(`["`+crons[i].ID+`"]`))
|
||||
continue
|
||||
}
|
||||
if crons[i].IsDisabled != 0 {
|
||||
|
||||
@@ -31,7 +31,7 @@ func init() {
|
||||
break
|
||||
}
|
||||
}
|
||||
if err := Config.Req(cron, CRONS, DELETE, []byte(`["`+cron.Value+`"]`)); err != nil {
|
||||
if err := Config.Req(CRONS, DELETE, []byte(`["`+cron.Value+`"]`)); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user