mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-03-31 00:07:46 +02:00
Popular function respects track limit
This commit is contained in:
parent
568969f7e5
commit
3fa85e9fe7
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ class Track extends Model implements Searchable, Commentable, Favouritable
|
||||||
'.$explicitFilter.'
|
'.$explicitFilter.'
|
||||||
GROUP BY track_id
|
GROUP BY track_id
|
||||||
ORDER BY weight DESC
|
ORDER BY weight DESC
|
||||||
LIMIT 30;';
|
LIMIT '.$count;
|
||||||
|
|
||||||
$countQuery = DB::select(DB::raw($queryText));
|
$countQuery = DB::select(DB::raw($queryText));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue