mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: broken pgsql query with distinct() (#1782)
This commit is contained in:
parent
9f4d74cda2
commit
475de9486f
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class SongBuilder extends Builder
|
|||
)
|
||||
->leftJoin('albums', 'songs.album_id', 'albums.id')
|
||||
->leftJoin('artists', 'songs.artist_id', 'artists.id')
|
||||
->distinct('songs.id')
|
||||
->distinct()
|
||||
->select(
|
||||
'songs.*',
|
||||
'albums.name',
|
||||
|
|
Loading…
Reference in a new issue