Fix getShares sort order
This commit is contained in:
parent
6c05fcb699
commit
ef4765c768
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue