mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 03:20:27 +00:00
fix json tag in models struct
This commit is contained in:
parent
a8edcee54e
commit
624e1f353a
@ -12,5 +12,5 @@ type PageStats struct {
|
||||
Entries int64 `db:"entries"`
|
||||
BounceRate float64 `db:"bounce_rate"`
|
||||
AvgDuration float64 `db:"avg_duration"`
|
||||
Date time.Time `db:"date" json:"omitempty"`
|
||||
Date time.Time `db:"date" json:",omitempty"`
|
||||
}
|
||||
|
@ -10,5 +10,5 @@ type ReferrerStats struct {
|
||||
Pageviews int64 `db:"pageviews"`
|
||||
BounceRate float64 `db:"bounce_rate"`
|
||||
AvgDuration float64 `db:"avg_duration"`
|
||||
Date time.Time `db:"date" json:"omitempty"`
|
||||
Date time.Time `db:"date" json:",omitempty"`
|
||||
}
|
||||
|
@ -10,5 +10,5 @@ type SiteStats struct {
|
||||
Sessions int64 `db:"sessions"`
|
||||
BounceRate float64 `db:"bounce_rate"`
|
||||
AvgDuration float64 `db:"avg_duration"`
|
||||
Date time.Time `db:"date" json:"omitempty"`
|
||||
Date time.Time `db:"date" json:",omitempty"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user