db interface

This commit is contained in:
2022-02-09 20:21:08 +01:00
parent 2b4f13f807
commit d116f5d938
8 changed files with 82 additions and 18 deletions

View File

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