Skip to content

Commit 6fe9771

Browse files
committed
fix html file path
1 parent e726839 commit 6fe9771

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pdf-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ app.post('/from-html', async (req, res) => {
3737
calls.fromHtml++;
3838
const html = req.body.html;
3939
const htmlFile = md5(html.substr(0, 100)) + '.html';
40-
const fullHtmlPath = path.join(__dirname, storagePath, htmlFile);
40+
const fullHtmlPath = path.join(storagePath, htmlFile);
4141

4242
fs.writeFileSync(fullHtmlPath, html);
4343

0 commit comments

Comments
 (0)