mirror of
https://github.com/certd/certd.git
synced 2026-07-14 01:17:31 +08:00
refactor: fix bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user