Referencing wrong struct in meas delete

This commit is contained in:
Matthew Dillon 2015-10-29 13:31:05 -07:00
parent f2a1c7c645
commit 031538cc18

View file

@ -121,7 +121,7 @@ func (m MeasurementService) Delete(id int64, genus string, claims *types.Claims)
if err != nil {
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)
}