ValidateObject not in interface

This commit is contained in:
2022-02-14 16:04:27 +01:00
parent aa8a1fa46f
commit 7ad97385db
3 changed files with 4 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ func validateObject(c *Context, m mgocrud.ModelInterface, changes bson.M) error
}
}
return c.DB.ValidateObject(m, changes)
return mgocrud.ValidateObject(c.DB, m, changes)
}
func savedObject(c *Context, m mgocrud.ModelInterface, changes bson.M) error {