mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-10 16:47:36 +01:00
fixes #5226
This commit is contained in:
@@ -16,6 +16,10 @@ module.exports = function (User) {
|
||||
async.waterfall([
|
||||
async.apply(db.getSortedSetRevRangeWithScores, 'uid:' + uid + ':bans', 0, 0),
|
||||
function (record, next) {
|
||||
if (!record.length) {
|
||||
return next(new Error('no-ban-info'));
|
||||
}
|
||||
|
||||
timestamp = record[0].score;
|
||||
expiry = record[0].value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user