Fixed issue where new measurements where not responding correctly
This commit is contained in:
		
							parent
							
								
									69a588bd38
								
							
						
					
					
						commit
						1e1d577878
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -146,6 +146,12 @@ func (m MeasurementService) Create(e *types.Entity, genus string, claims *types. | ||||||
| 		return newJSONError(err, http.StatusInternalServerError) | 		return newJSONError(err, http.StatusInternalServerError) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	return nil | 	measurement, err := models.GetMeasurement(payload.Measurement.ID, genus, claims) | ||||||
|  | 	if err != nil { | ||||||
|  | 		return newJSONError(err, http.StatusInternalServerError) | ||||||
|  | 	} | ||||||
| 
 | 
 | ||||||
|  | 	payload.Measurement = measurement | ||||||
|  | 
 | ||||||
|  | 	return nil | ||||||
| } | } | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Matthew Dillon
						Matthew Dillon