|
|
|
@ -65,7 +65,7 @@ module.exports = function (User) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
async.apply(db.getSortedSetRevRange, 'uid:' + uid + ':sessions', 0, -1),
|
|
|
|
async.apply(db.getSortedSetRevRange, 'uid:' + uid + ':sessions', 0, 19),
|
|
|
|
function (sids, next) {
|
|
|
|
function (sids, next) {
|
|
|
|
_sids = sids;
|
|
|
|
_sids = sids;
|
|
|
|
async.map(sids, db.sessionStore.get.bind(db.sessionStore), next);
|
|
|
|
async.map(sids, db.sessionStore.get.bind(db.sessionStore), next);
|
|
|
|
|