Showing 2 of 4 total issues
Function getOnline
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Users.getOnline = function (done) {
var now = Date.now();
if (now - lastRequestAt > onlineCache) {
var usersOnline, usersToFetch, usersInCache;
async.waterfall([
Function start
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Job.start = function (done) {
if (working) {
return done(new Error('Job is in progress. You can not start another'));
}