aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/emailer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/emailer.ts')
-rw-r--r--server/lib/emailer.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index bd1089530..9e546de7f 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -66,7 +66,7 @@ class Emailer {
66 } 66 }
67 } 67 }
68 68
69 return JobQueue.Instance.createJob({ type: 'email', payload: emailPayload }) 69 return JobQueue.Instance.createJobAsync({ type: 'email', payload: emailPayload })
70 } 70 }
71 71
72 addPasswordCreateEmailJob (username: string, to: string, createPasswordUrl: string) { 72 addPasswordCreateEmailJob (username: string, to: string, createPasswordUrl: string) {
@@ -80,7 +80,7 @@ class Emailer {
80 } 80 }
81 } 81 }
82 82
83 return JobQueue.Instance.createJob({ type: 'email', payload: emailPayload }) 83 return JobQueue.Instance.createJobAsync({ type: 'email', payload: emailPayload })
84 } 84 }
85 85
86 addVerifyEmailJob (username: string, to: string, verifyEmailUrl: string) { 86 addVerifyEmailJob (username: string, to: string, verifyEmailUrl: string) {
@@ -94,7 +94,7 @@ class Emailer {
94 } 94 }
95 } 95 }
96 96
97 return JobQueue.Instance.createJob({ type: 'email', payload: emailPayload }) 97 return JobQueue.Instance.createJobAsync({ type: 'email', payload: emailPayload })
98 } 98 }
99 99
100 addUserBlockJob (user: MUser, blocked: boolean, reason?: string) { 100 addUserBlockJob (user: MUser, blocked: boolean, reason?: string) {
@@ -108,7 +108,7 @@ class Emailer {
108 text: `Your account ${user.username} on ${CONFIG.INSTANCE.NAME} has been ${blockedWord}${reasonString}.` 108 text: `Your account ${user.username} on ${CONFIG.INSTANCE.NAME} has been ${blockedWord}${reasonString}.`
109 } 109 }
110 110
111 return JobQueue.Instance.createJob({ type: 'email', payload: emailPayload }) 111 return JobQueue.Instance.createJobAsync({ type: 'email', payload: emailPayload })
112 } 112 }
113 113
114 addContactFormJob (fromEmail: string, fromName: string, subject: string, body: string) { 114 addContactFormJob (fromEmail: string, fromName: string, subject: string, body: string) {
@@ -127,7 +127,7 @@ class Emailer {
127 } 127 }
128 } 128 }
129 129
130 return JobQueue.Instance.createJob({ type: 'email', payload: emailPayload }) 130 return JobQueue.Instance.createJobAsync({ type: 'email', payload: emailPayload })
131 } 131 }
132 132
133 async sendMail (options: EmailPayload) { 133 async sendMail (options: EmailPayload) {