Fix error with deleting characteristic

This commit is contained in:
Matthew Dillon 2015-11-13 14:15:57 -07:00
parent d6e92a2347
commit efedd467f7

View file

@ -203,7 +203,7 @@ func (c CharacteristicService) Delete(id int64, genus string, claims *types.Clai
return newJSONError(errors.ErrCharacteristicNotDeleted, http.StatusForbidden)
}
if err := models.Delete(characteristic); err != nil {
if err := models.Delete(characteristic.CharacteristicBase); err != nil {
return newJSONError(err, http.StatusInternalServerError)
}