Change route names
This commit is contained in:
parent
651c8f9de7
commit
74a06fccf3
@ -65,8 +65,8 @@ function Form({ theme }) {
|
|||||||
editor.update(() => {
|
editor.update(() => {
|
||||||
const sendMail = async () => {
|
const sendMail = async () => {
|
||||||
await axios
|
await axios
|
||||||
.post(`${process.env.REACT_APP_BACKEND_URL}/report_bug`, {
|
.post(`${process.env.REACT_APP_BACKEND_URL}/send_email`, {
|
||||||
subject: data.title,
|
subject: `[BUG REPORT]: ${data.title}`,
|
||||||
message: $generateHtmlFromNodes(editor),
|
message: $generateHtmlFromNodes(editor),
|
||||||
attachments: data.attachments,
|
attachments: data.attachments,
|
||||||
})
|
})
|
||||||
|
@ -69,7 +69,7 @@ function SurveyForm({ theme }) {
|
|||||||
editor.update(() => {
|
editor.update(() => {
|
||||||
const sendMail = async () => {
|
const sendMail = async () => {
|
||||||
await axios
|
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()}`,
|
subject: `[SURVEY]: ${new Date().toDateString()}`,
|
||||||
message: `${Object.keys(form).map(
|
message: `${Object.keys(form).map(
|
||||||
(k) => `<div>${questions[k]}</div><div>${form[k]}</div>`
|
(k) => `<div>${questions[k]}</div><div>${form[k]}</div>`
|
||||||
|
Loading…
Reference in New Issue
Block a user