Skip to content

Commit

Permalink
fixup! Add subsonic GetSimilarSongsTwo handler
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier committed Feb 10, 2022
1 parent 3568ab8 commit 2c413ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/ctrlsubsonic/handlers_by_tags.go
Expand Up @@ -564,7 +564,7 @@ func (c *Controller) ServeGetSimilarSongsTwo(r *http.Request) *spec.Response {
Preload("Album").
Joins("JOIN artists on tracks.artist_id = artists.id").
Where("artists.name IN (?)", artistNames).
Order("RAND()").Limit(count)
Order("RANDOM()").Limit(count)

if err := q.Find(&tracks).Error; err != nil {
return spec.NewError(0, "error finding tracks: %v", err)
Expand Down

0 comments on commit 2c413ed

Please sign in to comment.