cron defaults: use cron expression by default in backend and webui

This commit is contained in:
DBT
2026-02-26 03:24:34 +00:00
parent fcfc06c640
commit 2615a6b196
2 changed files with 6 additions and 6 deletions

View File

@@ -239,7 +239,7 @@ func gatewayCmd() {
}
kind := getStr("kind")
if kind == "" {
kind = "every"
kind = "cron"
}
if kind == "once" {
kind = "at"
@@ -270,7 +270,7 @@ func gatewayCmd() {
if kind == "cron" {
expr := getStr("expr")
if expr == "" {
return nil, fmt.Errorf("expr required for kind=cron")
expr = "*/10 * * * *"
}
schedule.Expr = expr
}