Skip to content

Commit

Permalink
fix the blind fix
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Nov 5, 2013
1 parent 8a09cf2 commit 6c6e552
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 6c6e552

Please sign in to comment.