mirror of https://github.com/status-im/codimd.git
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…
Reference in New Issue