modif cc in notification and Wwws change

This commit is contained in:
2024-08-06 07:34:25 +02:00
parent e56e29e2b6
commit 57db217ee4
3 changed files with 15 additions and 4 deletions

View File

@@ -243,12 +243,14 @@ Notifications.manageemail = (data, template, tribe) => {
dat.text = Mustache.render(tplemail.text, data);
dat.Cc=tplemail.Cc
dat.Bcc=tplemail.Bcc
/* @TODO issue with data.Cc need to test
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

@@ -7,6 +7,15 @@ const Odmdb = require("./Odmdb.js");
const conf = require(`../../../conf.json`);
const Wwws = {};
Wwws.initlocalwco=(tribwco,profils,lg)=>{
const wco={}
Object.keys(tribwco).forEach(t=>{
if (!fs.existsSync(`../../../${tribwco}`)){}
})
}
Wwws.initlocaldata = (tribe, appname, pagename, version, profils, lg) => {
const fileparam = `../../${tribe}/objects/wwws/itm/${appname}.json`;
console.log(fileparam);