Compare commits

..

No commits in common. "e10a82e1a73c86675656102a109013857da98f0f" and "7d4cdbcf3d08724fcb8803b8ad6ee311c7850600" have entirely different histories.

1 changed files with 1 additions and 3 deletions

View File

@ -50,9 +50,7 @@ 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
}