Skip to content

Commit

Permalink
event.value: save nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
gewo committed Dec 17, 2015
1 parent 29f8bda commit 1bacff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type Event struct {
DeviceId string `sql:"size:40" json:"deviceId"`
MeasuredAt time.Time `json:"measuredAt"`
Measurement string `sql:"size:1024" json:"measurement"`
Value float64 `json:"value"`
Value *float64 `json:"value"`
Fields string `sql:"size:1024" json:"fields"`
Tags string `sql:"size:1024" json:"tags"`
Note string `sql:"size:1024" json:"note"`
Expand Down

0 comments on commit 1bacff3

Please sign in to comment.