mirror of
https://github.com/koel/koel
synced 2024-11-12 23:47:09 +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('albums', 'songs.album_id', 'albums.id')
|
||||||
->leftJoin('artists', 'songs.artist_id', 'artists.id')
|
->leftJoin('artists', 'songs.artist_id', 'artists.id')
|
||||||
->distinct('songs.id')
|
->distinct()
|
||||||
->select(
|
->select(
|
||||||
'songs.*',
|
'songs.*',
|
||||||
'albums.name',
|
'albums.name',
|
||||||
|
|
Loading…
Reference in a new issue