Sometimes, the last seen time is empty

This commit is contained in:
Ryan Cavicchioni 2021-04-18 16:16:34 +00:00
parent c6b538380c
commit 15145d1f58
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

@ -51,7 +51,7 @@ type (
Group Selector `json:"group"`
Location Selector `json:"location"`
Product Product `json:"product"`
LastSeen time.Time `json:"last_seen"`
LastSeen *time.Time `json:"last_seen,omitempty"`
SecondsLastSeen float64 `json:"seconds_last_seen"`
}