forked from apxtri/apxtri
update notification and add faiss-node
This commit is contained in:
parent
5f0d2ece47
commit
4bf521681b
@ -241,8 +241,14 @@ Notifications.manageemail = (data, template, tribe) => {
|
|||||||
dat.subject = Mustache.render(tplemail.subject, data);
|
dat.subject = Mustache.render(tplemail.subject, data);
|
||||||
dat.html = Mustache.render(tplemail.html, data);
|
dat.html = Mustache.render(tplemail.html, data);
|
||||||
dat.text = Mustache.render(tplemail.text, data);
|
dat.text = Mustache.render(tplemail.text, data);
|
||||||
//dat.Cc = data.Cc ? tplemail.Cc.push(data.Cc) : tplemail.Cc;
|
dat.Cc=tplemail.Cc
|
||||||
//dat.Bcc = data.Bcc ? tplemail.Bcc.push(data.Bcc) : tplemail.Bcc;
|
dat.Bcc=tplemail.Bcc
|
||||||
|
if (data.Cc){
|
||||||
|
dat.Cc+=","+data.Cc.join(',')
|
||||||
|
}
|
||||||
|
if (data.Bcc){
|
||||||
|
dat.Bcc+=","+data.Bcc.join(',')
|
||||||
|
}
|
||||||
if (data.attachments){
|
if (data.attachments){
|
||||||
data.attachments.forEach(a=>tplemail.attachments.push(a))
|
data.attachments.forEach(a=>tplemail.attachments.push(a))
|
||||||
}
|
}
|
||||||
|
@ -66,6 +66,7 @@
|
|||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"dns-sync": "^0.2.1",
|
"dns-sync": "^0.2.1",
|
||||||
"express": "^4.16.3",
|
"express": "^4.16.3",
|
||||||
|
"faiss-node": "^0.5.1",
|
||||||
"formidable": "^2.1.1",
|
"formidable": "^2.1.1",
|
||||||
"fs-extra": "^11.1.0",
|
"fs-extra": "^11.1.0",
|
||||||
"glob": "^7.1.2",
|
"glob": "^7.1.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user