fix: duplicate search results

This commit is contained in:
Phan An 2024-03-23 08:54:58 +01:00
parent f99343e496
commit 19f7fffe64

View file

@ -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',