aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-14 11:56:23 +0100
committerChocobozzz <me@florianbigard.com>2019-02-14 11:56:23 +0100
commit7a338188f3ce6c3aa53054afaa936aa807d65fd8 (patch)
tree02af266eee6bf2e7d5f3dd3790e5eb1ed87d4bcf /server/lib/job-queue
parentd4804eead75bfaf41c3150d19e380ff4229d6226 (diff)
downloadPeerTube-7a338188f3ce6c3aa53054afaa936aa807d65fd8.tar.gz
PeerTube-7a338188f3ce6c3aa53054afaa936aa807d65fd8.tar.zst
PeerTube-7a338188f3ce6c3aa53054afaa936aa807d65fd8.zip
Fix from header in contact form
Diffstat (limited to 'server/lib/job-queue')
-rw-r--r--server/lib/job-queue/handlers/email.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/lib/job-queue/handlers/email.ts b/server/lib/job-queue/handlers/email.ts
index 220d0af32..2ba39a156 100644
--- a/server/lib/job-queue/handlers/email.ts
+++ b/server/lib/job-queue/handlers/email.ts
@@ -6,14 +6,16 @@ export type EmailPayload = {
6 to: string[] 6 to: string[]
7 subject: string 7 subject: string
8 text: string 8 text: string
9 from?: string 9
10 fromDisplayName?: string
11 replyTo?: string
10} 12}
11 13
12async function processEmail (job: Bull.Job) { 14async function processEmail (job: Bull.Job) {
13 const payload = job.data as EmailPayload 15 const payload = job.data as EmailPayload
14 logger.info('Processing email in job %d.', job.id) 16 logger.info('Processing email in job %d.', job.id)
15 17
16 return Emailer.Instance.sendMail(payload.to, payload.subject, payload.text, payload.from) 18 return Emailer.Instance.sendMail(payload)
17} 19}
18 20
19// --------------------------------------------------------------------------- 21// ---------------------------------------------------------------------------