Strain delete referencing wrong stuct
This commit is contained in:
parent
efedd467f7
commit
5cf73a19fb
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ func (s StrainService) Delete(id int64, genus string, claims *types.Claims) *typ
|
||||||
return newJSONError(errors.ErrStrainNotDeleted, http.StatusForbidden)
|
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)
|
return newJSONError(err, http.StatusInternalServerError)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue