update notification and add faiss-node
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user