uint ->int
This commit is contained in:
parent
8180112e5a
commit
a0b9e6d297
|
@ -51,7 +51,7 @@ func Add(request *backend.CmdAddRequest) (err error) {
|
|||
_ = mapstructure.Decode(request, &db)
|
||||
db.Status = common.CMD_STATUS_STOP
|
||||
if db.MatchJson == "" {
|
||||
db.MatchJson = "{}"
|
||||
db.MatchJson = "null"
|
||||
}
|
||||
_, err = croncmdmodel.GetInstance().GetDb().InsertOne(db)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue