Fix getShares sort order

This commit is contained in:
Deluan 2023-01-23 21:45:59 -05:00
parent 6c05fcb699
commit ef4765c768
1 changed files with 1 additions and 1 deletions

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
}