Skip to content

Commit

Permalink
Merge pull request #3 from s1341/master
Browse files Browse the repository at this point in the history
fix the blind fix
  • Loading branch information
JohnMcLear committed Nov 5, 2013
2 parents 8a09cf2 + 6c6e552 commit f47a047
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions index.js
Expand Up @@ -16,21 +16,18 @@ exports.registerRoute = function (hook_name, args, cb) {
var pads = [];
var data = [];

async.series([
async.waterfall([
function(callback){
padManager.listAllPads(err, pads){
async.forEach(pads, function(padID, callback){
if(padID[0] == letter || padID[0] == letter.toUpperCase()){
data.push(padID);
}
callback();
},
function(err){
callback();
});
}
padManager.listAllPads(callback)
},
function (pads, callback) {
async.forEach(pads.padIDs, function(padID, callback) {
if(padID[0] == letter || padID[0] == letter.toUpperCase()){
data.push(padID);
}
});
callback();
},

function(callback){
var render_args = {
errors: [],
Expand Down

0 comments on commit f47a047

Please sign in to comment.