Merge pull request #1127 from SISheogorath/fix/unlinkFix

Fix broken PDF export by wrong unlink call
This commit is contained in:
Christoph (Sheogorath) Kern 2019-01-25 18:27:33 +01:00 committed by GitHub
commit afcbea48cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
})
}