File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ const ResourceBookingService = require('./ResourceBookingService')
15
15
16
16
const emailTemplates = _ . mapValues ( emailTemplateConfig , ( template ) => {
17
17
return {
18
+ subject : template . subject ,
19
+ body : template . body ,
18
20
from : template . from ,
19
21
recipients : template . recipients ,
20
22
cc : template . cc ,
@@ -320,6 +322,8 @@ async function sendEmail (currentUser, data) {
320
322
const dataRecipients = data . recipients || [ ]
321
323
const templateRecipients = template . recipients || [ ]
322
324
const emailData = {
325
+ subject : data . subject || template . subject ,
326
+ body : data . body || template . body ,
323
327
// override template if coming data already have the 'from' address
324
328
from : data . from || template . from ,
325
329
// create a set of uniq. recipients & CCs, from both coming data & template
You can’t perform that action at this time.
0 commit comments