Fix getShares sort order

This commit is contained in:
Deluan 2023-01-23 21:45:59 -05:00 committed by Joe Stump
parent 24fa622d05
commit bbd3192fd3
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -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
}