Compare commits

...

3 Commits

Author SHA1 Message Date
renzhiyuan e10a82e1a7 Merge remote-tracking branch 'origin/main' into main 2024-11-29 20:49:44 +08:00
renzhiyuan a0b9e6d297 uint ->int 2024-11-29 20:49:13 +08:00
renzhiyuan 8180112e5a uint ->int 2024-11-29 20:49:06 +08:00
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ func Add(request *backend.CmdAddRequest) (err error) {
var db croncmdmodel.CronCmd
_ = mapstructure.Decode(request, &db)
db.Status = common.CMD_STATUS_STOP
if db.MatchJson == "" {
db.MatchJson = "null"
}
_, err = croncmdmodel.GetInstance().GetDb().InsertOne(db)
return
}