mirror of
https://github.com/status-im/codimd.git
synced 2025-01-27 15:55:10 +00:00
Fix pdf tmp path is missing a folder slash before timestamp
This commit is contained in:
parent
a6a107eab9
commit
a125f80535
@ -296,7 +296,7 @@ function actionPDF(req, res, note) {
|
||||
if (!fs.existsSync(config.tmppath)) {
|
||||
fs.mkdirSync(config.tmppath);
|
||||
}
|
||||
var path = config.tmppath + Date.now() + '.pdf';
|
||||
var path = config.tmppath + '/' + Date.now() + '.pdf';
|
||||
markdownpdf().from.string(body).to(path, function () {
|
||||
var stream = fs.createReadStream(path);
|
||||
var filename = title;
|
||||
|
Loading…
x
Reference in New Issue
Block a user