diff options
author | webzwo0i <webzwo0i@c3d2.de> | 2015-03-14 00:02:23 +0100 |
---|---|---|
committer | webzwo0i <webzwo0i@c3d2.de> | 2015-03-14 00:02:23 +0100 |
commit | a0fb65205c7d7ff95f00eb9fd88e93b300f30c3d (patch) | |
tree | 59e267f8b854b647297a6fc829742bc6bab1e515 /src/node/utils | |
parent | ec7ff3a0cac87b9319c714f792f5d39d68716c6f (diff) | |
download | etherpad-lite-a0fb65205c7d7ff95f00eb9fd88e93b300f30c3d.zip |
oops, fix export with wildcards
Diffstat (limited to 'src/node/utils')
-rw-r--r-- | src/node/utils/ExportEtherpad.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/node/utils/ExportEtherpad.js b/src/node/utils/ExportEtherpad.js index b7d43852..46ae0d7a 100644 --- a/src/node/utils/ExportEtherpad.js +++ b/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); } }) |