forked from tsai/budibase
3 changed files with 12 additions and 12 deletions
@ -1,11 +1,11 @@ |
|||
const { streamBackup } = require("../../utilities/fileSystem") |
|||
|
|||
exports.exportAppDump = async function (ctx) { |
|||
let { appId, includeRows } = ctx.query |
|||
let { appId, excludeRows } = ctx.query |
|||
const appName = decodeURI(ctx.query.appname) |
|||
includeRows = includeRows === "true" |
|||
excludeRows = excludeRows === "true" |
|||
const backupIdentifier = `${appName}-export-${new Date().getTime()}.txt` |
|||
ctx.attachment(backupIdentifier) |
|||
|
|||
ctx.body = await streamBackup(appId, includeRows) |
|||
ctx.body = await streamBackup(appId, excludeRows) |
|||
} |
|||
|
|||
Loading…
Reference in new issue