Fix error with deleting characteristic
This commit is contained in:
parent
d6e92a2347
commit
efedd467f7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue