This commit is contained in:
cdle
2021-09-20 08:30:16 +08:00
parent c650e19cdb
commit 917bc2a24e
+3
View File
@@ -288,6 +288,9 @@ func GetCronID(keyword string) (*Cron, error) {
}
cs := []Cron{}
for _, cron := range crons {
if cron.IsDisabled != 0 {
continue
}
if cron.ID == keyword {
cs = append(cs, cron)
break