Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Change route names

1ilit74a06fccf357
diff --git a/src/pages/bug_report.jsx b/src/pages/bug_report.jsx
index 78997eb3..2cdf7637 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 b5408a5e..5d949d43 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) => `<div>${questions[k]}</div><div>${form[k]}</div>`