copy even users to dump

This commit is contained in:
Martin McKeaveney 2021-01-29 17:17:13 +00:00
parent ff490ef843
commit 94ef16075a
1 changed files with 1 additions and 5 deletions

View File

@ -60,11 +60,7 @@ async function performDump({ dir, appId, name = "dump.txt" }) {
const writeStream = fs.createWriteStream(join(dir, name))
// perform couch dump
const instanceDb = new CouchDB(appId)
await instanceDb.dump(writeStream, {
filter: doc => {
return !doc._id.startsWith(DocumentTypes.USER)
},
})
await instanceDb.dump(writeStream, {})
}
exports.performDump = performDump