From 2f96976f194ff49338da662b64bfddf39fb13560 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 5 Oct 2023 18:54:44 +0400 Subject: [PATCH] In DJHandlers.Status in an anonymous struct removed a pointer to Song. --- internal/http/dj_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/dj_handlers.go b/internal/http/dj_handlers.go index 0667ef5..0515557 100644 --- a/internal/http/dj_handlers.go +++ b/internal/http/dj_handlers.go @@ -93,7 +93,7 @@ func (dj *DJHandlers) Songs(w http.ResponseWriter, r *http.Request) { func (dj *DJHandlers) Status(w http.ResponseWriter, r *http.Request) { w.Header().Add("Content-Type", "application/json") err := json.NewEncoder(w).Encode(&struct { - Current *radio.Song `json:"current_song,omitempty"` + Current radio.Song `json:"current_song,omitempty"` Listeners *radio.ListenerCounter `json:"listeners"` List []radio.Song `json:"last_songs,omitempty"` Mls *radio.MostListenedSong `json:"most_listened_song,omitempty"`