delete left over albums count query in getStarred2

This commit is contained in:
sentriz
2022-10-26 23:49:17 +01:00
parent e8759cb6c1
commit b332ce8285

View File

@@ -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).