validator not work
This commit is contained in:
@@ -18,7 +18,7 @@ func (sma *StorageMongoAccessor) UpdateOne(set map[string]interface{}, id string
|
||||
}
|
||||
|
||||
func (sma *StorageMongoAccessor) StoreOne(data utils.DBObject) (utils.DBObject, error) {
|
||||
err := sma.Validate(data.(*Storage))
|
||||
err := utils.Validate.Struct(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user