copy even users to dump
This commit is contained in:
parent
8168844072
commit
91ee1b313e
|
@ -60,11 +60,7 @@ async function performDump({ dir, appId, name = "dump.txt" }) {
|
||||||
const writeStream = fs.createWriteStream(join(dir, name))
|
const writeStream = fs.createWriteStream(join(dir, name))
|
||||||
// perform couch dump
|
// perform couch dump
|
||||||
const instanceDb = new CouchDB(appId)
|
const instanceDb = new CouchDB(appId)
|
||||||
await instanceDb.dump(writeStream, {
|
await instanceDb.dump(writeStream, {})
|
||||||
filter: doc => {
|
|
||||||
return !doc._id.startsWith(DocumentTypes.USER)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.performDump = performDump
|
exports.performDump = performDump
|
||||||
|
|
Loading…
Reference in New Issue