Skip to content

Commit

Permalink
delete left over albums count query in getStarred2
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Oct 26, 2022
1 parent e8759cb commit b332ce8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/ctrlsubsonic/handlers_by_tags.go
Expand Up @@ -421,7 +421,6 @@ func (c *Controller) ServeGetStarredTwo(r *http.Request) *spec.Response {
// artists
var artists []*db.Artist
q := c.DB.
Select("*, count(albums.id) album_count").
Group("artists.id").
Joins("JOIN artist_stars ON artist_stars.artist_id=artists.id").
Where("artist_stars.user_id=?", user.ID).
Expand Down

0 comments on commit b332ce8

Please sign in to comment.