1
0
forked from apxtri/apxtri

update notification and add faiss-node

This commit is contained in:
philc 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))
}

View File

@ -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",