aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/server/contact-form.ts2
-rw-r--r--shared/models/server/contact-form.model.ts1
2 files changed, 3 insertions, 0 deletions
diff --git a/shared/extra-utils/server/contact-form.ts b/shared/extra-utils/server/contact-form.ts
index 80394cf99..e002e03dd 100644
--- a/shared/extra-utils/server/contact-form.ts
+++ b/shared/extra-utils/server/contact-form.ts
@@ -5,6 +5,7 @@ function sendContactForm (options: {
5 url: string, 5 url: string,
6 fromEmail: string, 6 fromEmail: string,
7 fromName: string, 7 fromName: string,
8 subject: string,
8 body: string, 9 body: string,
9 expectedStatus?: number 10 expectedStatus?: number
10}) { 11}) {
@@ -13,6 +14,7 @@ function sendContactForm (options: {
13 const body: ContactForm = { 14 const body: ContactForm = {
14 fromEmail: options.fromEmail, 15 fromEmail: options.fromEmail,
15 fromName: options.fromName, 16 fromName: options.fromName,
17 subject: options.subject,
16 body: options.body 18 body: options.body
17 } 19 }
18 return request(options.url) 20 return request(options.url)
diff --git a/shared/models/server/contact-form.model.ts b/shared/models/server/contact-form.model.ts
index 0696be8b4..c23e6d1ba 100644
--- a/shared/models/server/contact-form.model.ts
+++ b/shared/models/server/contact-form.model.ts
@@ -1,5 +1,6 @@
1export interface ContactForm { 1export interface ContactForm {
2 fromEmail: string 2 fromEmail: string
3 fromName: string 3 fromName: string
4 subject: string
4 body: string 5 body: string
5} 6}