mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 01:49:01 +02:00
ESlint comma-dangle
This commit is contained in:
@@ -27,7 +27,7 @@ Categories.getAll = function (socket, data, callback) {
|
||||
},
|
||||
function (result, next) {
|
||||
next(null, categories.getTree(result.categories, 0));
|
||||
}
|
||||
},
|
||||
], function (err, categoriesTree) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
|
||||
@@ -15,7 +15,7 @@ Groups.create = function (socket, data, callback) {
|
||||
groups.create({
|
||||
name: data.name,
|
||||
description: data.description,
|
||||
ownerUid: socket.uid
|
||||
ownerUid: socket.uid,
|
||||
}, callback);
|
||||
};
|
||||
|
||||
@@ -33,7 +33,7 @@ Groups.join = function (socket, data, callback) {
|
||||
return next(new Error('[[error:group-already-member]]'));
|
||||
}
|
||||
groups.join(data.groupName, data.uid, next);
|
||||
}
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
@@ -55,7 +55,7 @@ Groups.leave = function (socket, data, callback) {
|
||||
return next(new Error('[[error:group-not-member]]'));
|
||||
}
|
||||
groups.leave(data.groupName, data.uid, next);
|
||||
}
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ var stats = {};
|
||||
var totals = {};
|
||||
var SocketRooms = {
|
||||
stats: stats,
|
||||
totals: totals
|
||||
totals: totals,
|
||||
};
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ SocketRooms.getAll = function (socket, data, callback) {
|
||||
recent: 0,
|
||||
unread: 0,
|
||||
topics: 0,
|
||||
category: 0
|
||||
category: 0,
|
||||
};
|
||||
|
||||
for (var instance in stats) {
|
||||
@@ -109,11 +109,11 @@ SocketRooms.getAll = function (socket, data, callback) {
|
||||
topTenTopics.forEach(function (topic, index) {
|
||||
totals.topics[topic.tid] = {
|
||||
value: topic.count || 0,
|
||||
title: validator.escape(String(titles[index].title))
|
||||
title: validator.escape(String(titles[index].title)),
|
||||
};
|
||||
});
|
||||
next(null, totals);
|
||||
}
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
@@ -143,9 +143,9 @@ SocketRooms.getLocalStats = function (callback) {
|
||||
recent: 0,
|
||||
unread: 0,
|
||||
topics: 0,
|
||||
category: 0
|
||||
category: 0,
|
||||
},
|
||||
topics: {}
|
||||
topics: {},
|
||||
};
|
||||
|
||||
if (io) {
|
||||
|
||||
@@ -117,7 +117,7 @@ User.sendValidationEmail = function (socket, uids, callback) {
|
||||
next();
|
||||
}
|
||||
}, next);
|
||||
}
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
@@ -177,17 +177,17 @@ function deleteUsers(socket, uids, method, callback) {
|
||||
type: 'user-delete',
|
||||
uid: socket.uid,
|
||||
targetUid: uid,
|
||||
ip: socket.ip
|
||||
ip: socket.ip,
|
||||
}, next);
|
||||
},
|
||||
function (next) {
|
||||
plugins.fireHook('action:user.delete', {
|
||||
callerUid: socket.uid,
|
||||
uid: uid,
|
||||
ip: socket.ip
|
||||
ip: socket.ip,
|
||||
});
|
||||
next();
|
||||
}
|
||||
},
|
||||
], next);
|
||||
}, callback);
|
||||
}
|
||||
@@ -220,7 +220,7 @@ User.search = function (socket, data, callback) {
|
||||
}
|
||||
});
|
||||
next(null, searchData);
|
||||
}
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
@@ -238,10 +238,10 @@ User.acceptRegistration = function (socket, data, callback) {
|
||||
type: 'registration-approved',
|
||||
uid: socket.uid,
|
||||
ip: socket.ip,
|
||||
targetUid: uid
|
||||
targetUid: uid,
|
||||
});
|
||||
next(null, uid);
|
||||
}
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
@@ -258,7 +258,7 @@ User.rejectRegistration = function (socket, data, callback) {
|
||||
username: data.username,
|
||||
});
|
||||
next();
|
||||
}
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user