fixed flags list in account info page

v1.18.x
Julian Lam 8 years ago
parent c34b10dd50
commit 55f07d3301

@ -51,7 +51,7 @@ module.exports = function (User) {
async.waterfall([
function (next) {
async.parallel({
flags: async.apply(db.getSortedSetRevRangeWithScores, 'uid:' + uid + ':flag:pids', 0, 19),
flags: async.apply(db.getSortedSetRevRangeWithScores, 'flags:byTargetUid:' + uid, 0, 19),
bans: async.apply(db.getSortedSetRevRangeWithScores, 'uid:' + uid + ':bans', 0, 19),
reasons: async.apply(db.getSortedSetRevRangeWithScores, 'banned:' + uid + ':reasons', 0, 19),
}, next);

Loading…
Cancel
Save