Merge branch 'budi-7010/frontend-encrypt-app-exports' into budi-7010/frontend-encrypt-app-imports

This commit is contained in:
Adria Navarro 2023-06-14 11:34:09 +01:00
commit 450ac715a2
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@
const exportApp = async () => { const exportApp = async () => {
const id = published ? app.prodId : app.devId const id = published ? app.prodId : app.devId
const url = `/api/backups/export?appId=${id}` const url = `/api/backups/export?appId=${id}`
await downloadFile(url, { excludeRows, encryptPassword: password }) await downloadFile(url, {
excludeRows: !includeInternalTablesRows,
encryptPassword: password,
})
} }
export async function downloadFile(url, body) { export async function downloadFile(url, body) {