mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
fix missing limit bug
This commit is contained in:
parent
81a931c884
commit
0a22c1f738
@ -448,7 +448,7 @@ exports.setup = (mstream) => {
|
||||
renderOrClause(req.user.vpaths, req.body.ignoreVPaths),
|
||||
{ 'lastPlayed': { '$gt': 0 } }
|
||||
]
|
||||
}).simplesort('lastPlayed', true).data();
|
||||
}).simplesort('lastPlayed', true).limit(req.body.limit).data();
|
||||
|
||||
const songs = [];
|
||||
for (const row of results) {
|
||||
@ -498,7 +498,7 @@ exports.setup = (mstream) => {
|
||||
renderOrClause(req.user.vpaths, req.body.ignoreVPaths),
|
||||
{ 'playCount': { '$gt': 0 } }
|
||||
]
|
||||
}).simplesort('playCount', true).data();
|
||||
}).simplesort('playCount', true).limit(req.body.limit).data();
|
||||
|
||||
const songs = [];
|
||||
for (const row of results) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user