fix: broken pgsql query with distinct() (#1782)

This commit is contained in:
Phan An 2024-07-13 13:50:00 +02:00 committed by GitHub
parent 9f4d74cda2
commit 475de9486f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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