Fixed issue with NullString JSON unmarshalling.
Updated Measurements.Notes test.
This commit is contained in:
parent
7da59ffef2
commit
7b7f519c01
4 changed files with 10 additions and 3 deletions
|
@ -14,6 +14,7 @@ func newMeasurement() *models.Measurement {
|
|||
measurement.CharacteristicId = 3
|
||||
measurement.TextMeasurementTypeId = models.NullInt64{sql.NullInt64{Int64: 4, Valid: false}}
|
||||
measurement.UnitTypeId = models.NullInt64{sql.NullInt64{Int64: 5, Valid: true}}
|
||||
measurement.Notes = models.NullString{sql.NullString{String: "a note", Valid: true}}
|
||||
return measurement
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue