This commit is contained in:
cdle
2021-10-21 14:47:02 +08:00
parent f3cc71e2fa
commit 25ff75ec35
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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 {
+1 -1
View File
@@ -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