diff --git a/server.js b/server.js index 592c716..9f2b190 100644 --- a/server.js +++ b/server.js @@ -1554,9 +1554,19 @@ app.post('/api/admin/upload-attachment', requirePin, async (req, res) => { const { value: bodyHtml } = await mammoth.convertToHtml({ buffer }); const htmlFilename = `${uuid}.html`; const page = `
- + ${bodyHtml}`; await writeFile(join(ATTACHMENTS_DIR, htmlFilename), page); htmlUrl = `/api/attachments/${htmlFilename}`;