diff --git a/models/Notifications.js b/models/Notifications.js index ef8a266..d60ae40 100644 --- a/models/Notifications.js +++ b/models/Notifications.js @@ -241,8 +241,14 @@ Notifications.manageemail = (data, template, tribe) => { dat.subject = Mustache.render(tplemail.subject, data); dat.html = Mustache.render(tplemail.html, data); dat.text = Mustache.render(tplemail.text, data); - //dat.Cc = data.Cc ? tplemail.Cc.push(data.Cc) : tplemail.Cc; - //dat.Bcc = data.Bcc ? tplemail.Bcc.push(data.Bcc) : tplemail.Bcc; + dat.Cc=tplemail.Cc + dat.Bcc=tplemail.Bcc + if (data.Cc){ + dat.Cc+=","+data.Cc.join(',') + } + if (data.Bcc){ + dat.Bcc+=","+data.Bcc.join(',') + } if (data.attachments){ data.attachments.forEach(a=>tplemail.attachments.push(a)) } diff --git a/package.json b/package.json index 6d02b01..d0528e3 100755 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "dayjs": "^1.11.7", "dns-sync": "^0.2.1", "express": "^4.16.3", + "faiss-node": "^0.5.1", "formidable": "^2.1.1", "fs-extra": "^11.1.0", "glob": "^7.1.2",