Skip to content

Commit a125f80

Browse files
committed
Fix pdf tmp path is missing a folder slash before timestamp
1 parent a6a107e commit a125f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function actionPDF(req, res, note) {
296296
if (!fs.existsSync(config.tmppath)) {
297297
fs.mkdirSync(config.tmppath);
298298
}
299-
var path = config.tmppath + Date.now() + '.pdf';
299+
var path = config.tmppath + '/' + Date.now() + '.pdf';
300300
markdownpdf().from.string(body).to(path, function () {
301301
var stream = fs.createReadStream(path);
302302
var filename = title;

0 commit comments

Comments
 (0)