update notification and add faiss-node

This commit is contained in:
2024-07-20 07:47:30 +02:00
parent 5f0d2ece47
commit 4bf521681b
2 changed files with 9 additions and 2 deletions

View File

@@ -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))
}