From 5cf73a19fb7905f93edfc31313e055551e05125f Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 16 Nov 2015 09:52:41 -0700 Subject: [PATCH] Strain delete referencing wrong stuct --- api/strains.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/strains.go b/api/strains.go index 3b5bedd..b624905 100644 --- a/api/strains.go +++ b/api/strains.go @@ -219,7 +219,7 @@ func (s StrainService) Delete(id int64, genus string, claims *types.Claims) *typ return newJSONError(errors.ErrStrainNotDeleted, http.StatusForbidden) } - if err := models.Delete(strain); err != nil { + if err := models.Delete(strain.StrainBase); err != nil { return newJSONError(err, http.StatusInternalServerError) }