Fix getShares sort order
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
func (api *Router) GetShares(r *http.Request) (*responses.Subsonic, error) {
|
func (api *Router) GetShares(r *http.Request) (*responses.Subsonic, error) {
|
||||||
repo := api.share.NewRepository(r.Context()).(model.ShareRepository)
|
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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user