Strain delete referencing wrong stuct

This commit is contained in:
Matthew Dillon 2015-11-16 09:52:41 -07:00
parent efedd467f7
commit 5cf73a19fb

View file

@ -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)
}