refactor: fix bug

This commit is contained in:
xiaojunnuo
2021-02-05 18:13:24 +08:00
parent 9f434b0968
commit 560519894c
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ router.post('/toZip', async function (ctx, next) {
// const query = request.query
const body = ctx.request.body
// const req_queryString = request.queryString
const { zipPath, fileName } = await exportsService.exportsToZip(body, 'certd-run')
const { zipPath, fileName } = await exportsService.exportsToZip(body.options, 'certd-run')
console.log('zipFile', zipPath)
ctx.set('Content-disposition', 'attachment;filename=' + fileName)