oops, fix export with wildcards

pull/2550/head
webzwo0i 2015-03-14 00:02:23 +01:00
parent ec7ff3a0ca
commit a0fb65205c
1 changed files with 12 additions and 2 deletions

View File

@ -23,9 +23,19 @@ exports.getPadRaw = function(padId, callback){
async.waterfall([
function(cb){
// Get the Pad available content keys
db.findKeys("pad:"+padId+"*", null, function(err,records){
// Get the Pad
db.findKeys("pad:"+padId, null, function(err,padcontent){
if(!err){
cb(err, padcontent);
}
})
},
function(padcontent,cb){
// Get the Pad available content keys
db.findKeys("pad:"+padId+":*", null, function(err,records){
if(!err){
for (var key in padcontent) { records.push(padcontent[key]);}
cb(err, records);
}
})