Permalink
Browse files

oops, fix export with wildcards

  • Loading branch information...
webzwo0i committed Mar 13, 2015
1 parent ec7ff3a commit a0fb65205c7d7ff95f00eb9fd88e93b300f30c3d
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/node/utils/ExportEtherpad.js
@@ -23,9 +23,19 @@ exports.getPadRaw = function(padId, callback){
async.waterfall([
function(cb){
// 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){
db.findKeys("pad:"+padId+":*", null, function(err,records){
if(!err){
for (var key in padcontent) { records.push(padcontent[key]);}
cb(err, records);
}
})

0 comments on commit a0fb652

Please sign in to comment.