diff --git a/src/pages/bug_report.jsx b/src/pages/bug_report.jsx index 78997eb..2cdf763 100644 --- a/src/pages/bug_report.jsx +++ b/src/pages/bug_report.jsx @@ -65,8 +65,8 @@ function Form({ theme }) { editor.update(() => { const sendMail = async () => { await axios - .post(`${process.env.REACT_APP_BACKEND_URL}/report_bug`, { - subject: data.title, + .post(`${process.env.REACT_APP_BACKEND_URL}/send_email`, { + subject: `[BUG REPORT]: ${data.title}`, message: $generateHtmlFromNodes(editor), attachments: data.attachments, }) diff --git a/src/pages/survey.jsx b/src/pages/survey.jsx index b5408a5..5d949d4 100644 --- a/src/pages/survey.jsx +++ b/src/pages/survey.jsx @@ -69,7 +69,7 @@ function SurveyForm({ theme }) { editor.update(() => { const sendMail = async () => { await axios - .post(`${process.env.REACT_APP_BACKEND_URL}/report_bug`, { + .post(`${process.env.REACT_APP_BACKEND_URL}/send_email`, { subject: `[SURVEY]: ${new Date().toDateString()}`, message: `${Object.keys(form).map( (k) => `
${questions[k]}
${form[k]}
`