diff --git a/models/utils/common.go b/models/utils/common.go index 1666153..fdf06d9 100755 --- a/models/utils/common.go +++ b/models/utils/common.go @@ -114,9 +114,6 @@ func ModelGenericUpdateOne(change map[string]interface{}, id string, a Accessor) // GenericLoadOne loads one object from the database (generic) // json expected in entry is a flatted object no need to respect the inheritance hierarchy func GenericUpdateOne(change map[string]interface{}, id string, a Accessor, new DBObject) (DBObject, int, error) { - if change["is_draft"] == nil { - change["is_draft"] = false - } loaded, c, err := ModelGenericUpdateOne(change, id, a) if err != nil { return nil, c, err