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

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