🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Fix getShares sort order
Deluanef4765c768ef
diff --git a/server/subsonic/sharing.go b/server/subsonic/sharing.goindex d52549b20..9b74375b2 100644--- a/server/subsonic/sharing.go+++ b/server/subsonic/sharing.go@@ -14,7 +14,7 @@ import (func (api *Router) GetShares(r *http.Request) (*responses.Subsonic, error) {repo := api.share.NewRepository(r.Context()).(model.ShareRepository)- shares, err := repo.GetAll()+ shares, err := repo.GetAll(model.QueryOptions{Sort: "created_at desc"})if err != nil {return nil, err}