mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 14:50:47 +01:00
limit sessions displayed to 20
This commit is contained in:
@@ -65,7 +65,7 @@ module.exports = function (User) {
|
||||
}
|
||||
|
||||
async.waterfall([
|
||||
async.apply(db.getSortedSetRevRange, 'uid:' + uid + ':sessions', 0, -1),
|
||||
async.apply(db.getSortedSetRevRange, 'uid:' + uid + ':sessions', 0, 19),
|
||||
function (sids, next) {
|
||||
_sids = sids;
|
||||
async.map(sids, db.sessionStore.get.bind(db.sessionStore), next);
|
||||
|
||||
Reference in New Issue
Block a user