proxy/reply.js
Function getRepliesByTopicId
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.getRepliesByTopicId = function (id, cb) {
Reply.find({topic: id, deleted: false}, '', {sort: 'create_at'}).populate('author').exec(function (err, replies) {
if (err) {
return cb(err);
}
Function newAndSave
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.newAndSave = function (content, topicId, authorId, replyId, callback) {