Handle "naked" CoverArtIDs (IDs of album, mediafiles and playlists)

This commit is contained in:
Deluan
2022-12-28 12:32:46 -05:00
committed by Deluan Quintão
parent bc09de6640
commit 61e5523457
14 changed files with 82 additions and 25 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ func (api *Router) Download(w http.ResponseWriter, r *http.Request) (*responses.
return nil, newError(responses.ErrorAuthorizationFail, "downloads are disabled")
}
entity, err := core.GetEntityByID(ctx, api.ds, id)
entity, err := model.GetEntityByID(ctx, api.ds, id)
if err != nil {
return nil, err
}