aboutsummaryrefslogtreecommitdiff
path: root/wrms.go
diff options
context:
space:
mode:
Diffstat (limited to 'wrms.go')
-rw-r--r--wrms.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/wrms.go b/wrms.go
index f225b2a..c6d6086 100644
--- a/wrms.go
+++ b/wrms.go
@@ -22,8 +22,8 @@ type Song struct {
Album string `json:"album"`
Year int `json:"year"`
index int `json:"-"` // used by heap.Interface
- Upvotes map[uuid.UUID]struct{} `json:"-"`
- Downvotes map[uuid.UUID]struct{} `json:"-"`
+ Upvotes map[uuid.UUID]struct{} `json:"upvotes"`
+ Downvotes map[uuid.UUID]struct{} `json:"downvotes"`
}
func NewSong(title, artist, source, uri string) *Song {