mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01: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.'
|
||||
GROUP BY track_id
|
||||
ORDER BY weight DESC
|
||||
LIMIT 30;';
|
||||
LIMIT '.$count;
|
||||
|
||||
$countQuery = DB::select(DB::raw($queryText));
|
||||
|
||||
|
|
Loading…
Reference in a new issue