mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
running eslint again
This commit is contained in:
@@ -29,12 +29,12 @@ SocketFlags.create = function (socket, data, callback) {
|
||||
async.apply(flags.validate, {
|
||||
uid: socket.uid,
|
||||
type: data.type,
|
||||
id: data.id
|
||||
id: data.id,
|
||||
}),
|
||||
function (next) {
|
||||
// If we got here, then no errors occurred
|
||||
flags.create(data.type, data.id, socket.uid, data.reason, next);
|
||||
}
|
||||
},
|
||||
], function (err, flagObj) {
|
||||
if (err) {
|
||||
return callback(err);
|
||||
@@ -56,7 +56,7 @@ SocketFlags.update = function (socket, data, callback) {
|
||||
function (next) {
|
||||
async.parallel([
|
||||
async.apply(user.isAdminOrGlobalMod, socket.uid),
|
||||
async.apply(user.isModeratorOfAnyCategory, socket.uid)
|
||||
async.apply(user.isModeratorOfAnyCategory, socket.uid),
|
||||
], function (err, results) {
|
||||
next(err, results[0] || results[1]);
|
||||
});
|
||||
@@ -74,7 +74,7 @@ SocketFlags.update = function (socket, data, callback) {
|
||||
|
||||
flags.update(data.flagId, socket.uid, payload, next);
|
||||
},
|
||||
async.apply(flags.getHistory, data.flagId)
|
||||
async.apply(flags.getHistory, data.flagId),
|
||||
], callback);
|
||||
};
|
||||
|
||||
@@ -87,7 +87,7 @@ SocketFlags.appendNote = function (socket, data, callback) {
|
||||
function (next) {
|
||||
async.parallel([
|
||||
async.apply(user.isAdminOrGlobalMod, socket.uid),
|
||||
async.apply(user.isModeratorOfAnyCategory, socket.uid)
|
||||
async.apply(user.isModeratorOfAnyCategory, socket.uid),
|
||||
], function (err, results) {
|
||||
next(err, results[0] || results[1]);
|
||||
});
|
||||
@@ -101,10 +101,10 @@ SocketFlags.appendNote = function (socket, data, callback) {
|
||||
},
|
||||
function (next) {
|
||||
async.parallel({
|
||||
"notes": async.apply(flags.getNotes, data.flagId),
|
||||
"history": async.apply(flags.getHistory, data.flagId)
|
||||
notes: async.apply(flags.getNotes, data.flagId),
|
||||
history: async.apply(flags.getHistory, data.flagId),
|
||||
}, next);
|
||||
}
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user