From efedd467f7bcd2455830da404be80af6a4ac1f01 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 13 Nov 2015 14:15:57 -0700 Subject: [PATCH] Fix error with deleting characteristic --- api/characteristics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/characteristics.go b/api/characteristics.go index 0145a6f..f68f422 100644 --- a/api/characteristics.go +++ b/api/characteristics.go @@ -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) }