mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: duplicate search results
This commit is contained in:
parent
f99343e496
commit
19f7fffe64
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ class SongBuilder extends Builder
|
|||
)
|
||||
->join('albums', 'songs.album_id', '=', 'albums.id')
|
||||
->join('artists', 'songs.artist_id', '=', 'artists.id')
|
||||
->distinct('songs.id')
|
||||
->select(
|
||||
'songs.*',
|
||||
'albums.name',
|
||||
|
|
Loading…
Reference in a new issue