Merge pull request #1127 from SISheogorath/fix/unlinkFix
Fix broken PDF export by wrong unlink call
This commit is contained in:
commit
afcbea48cd
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ function actionPDF (req, res, note) {
|
|||
res.setHeader('Content-Type', 'application/pdf; charset=UTF-8')
|
||||
res.setHeader('X-Robots-Tag', 'noindex, nofollow') // prevent crawling
|
||||
stream.pipe(res)
|
||||
fs.unlink(path)
|
||||
fs.unlinkSync(path)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue