function getFetchByStateCallback(callback) {
            return function(err, data) {
                if (err) {
                    asyncErrors.push(err);
                }
                callback(null, data);
            };
        }
function getFetchByStateCallback(callback) {
            return function(err, data) {
                if (err) {
                    asyncErrors.push(err);
                }
                callback(null, data);
            };
        }
function getFetchByStateCallback ( callback ) { return function ( err , data ) { if ( err ) { asyncErrors . push ( err ) ; } callback ( null , data ) ; } ; }
This exists so we can populate an errors object from the async calls. Otherwise if there is an error passed to the async callback, the async module will stop executing remaining functions.
This exists so we can populate an errors object from the async calls . Otherwise if there is an error passed to the async callback the async module will stop executing remaining functions .