Referencing wrong struct in meas delete
This commit is contained in:
parent
f2a1c7c645
commit
031538cc18
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ func (m MeasurementService) Delete(id int64, genus string, claims *types.Claims)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return newJSONError(err, http.StatusInternalServerError)
|
return newJSONError(err, http.StatusInternalServerError)
|
||||||
}
|
}
|
||||||
if err := models.Delete(measurement); err != nil {
|
if err := models.Delete(measurement.MeasurementBase); err != nil {
|
||||||
return newJSONError(err, http.StatusInternalServerError)
|
return newJSONError(err, http.StatusInternalServerError)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue