uint ->int
This commit is contained in:
parent
77b7c9c207
commit
8180112e5a
|
@ -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 = "{}"
|
||||
}
|
||||
_, err = croncmdmodel.GetInstance().GetDb().InsertOne(db)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue