mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: explicit group by columns (#1610)
This commit is contained in:
parent
67e0a470d9
commit
e82eade364
1 changed files with 8 additions and 1 deletions
|
@ -23,7 +23,14 @@ class ArtistRepository extends Repository
|
|||
->leftJoin('interactions', static function (JoinClause $join) use ($user): void {
|
||||
$join->on('interactions.song_id', '=', 'songs.id')->where('interactions.user_id', $user->id);
|
||||
})
|
||||
->groupBy(['artists.id', 'play_count'])
|
||||
->groupBy([
|
||||
'artists.id',
|
||||
'play_count',
|
||||
'artists.name',
|
||||
'artists.image',
|
||||
'artists.created_at',
|
||||
'artists.updated_at',
|
||||
])
|
||||
->isStandard()
|
||||
->orderByDesc('play_count')
|
||||
->limit($count)
|
||||
|
|
Loading…
Reference in a new issue