From ef4765c768ef6182301cbf6f07d832752c86e3cc Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 23 Jan 2023 21:45:59 -0500 Subject: [PATCH] Fix getShares sort order --- server/subsonic/sharing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/subsonic/sharing.go b/server/subsonic/sharing.go index d52549b2..9b74375b 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 }