Iscrizione Conacreis e Arcadei
This commit is contained in:
@@ -1211,7 +1211,7 @@ module.exports = {
|
||||
|
||||
} catch (e) {
|
||||
console.error('sendNotificationByCircuit: ', e);
|
||||
return {ris: null, inviato: false} ;
|
||||
return {ris: null, inviato: false};
|
||||
}
|
||||
|
||||
},
|
||||
@@ -1317,20 +1317,24 @@ module.exports = {
|
||||
},
|
||||
|
||||
ConvertHTMLToPlainText(strHTML) {
|
||||
return strHTML.replace(/<[^>]+>/g, '');
|
||||
if (strHTML)
|
||||
return strHTML.replace(/<[^>]+>/g, '');
|
||||
return '';
|
||||
},
|
||||
|
||||
convertHTMLtoText(myhtml) {
|
||||
let msg = myhtml;
|
||||
msg = msg.replace('"', '"');
|
||||
msg = msg.replace(/<strong>/g, '');
|
||||
msg = msg.replace(/<\/strong>/g, '');
|
||||
msg = msg.replace(/<em>/g, '');
|
||||
msg = msg.replace(/<\/em>/g, '');
|
||||
msg = msg.replace('>', '>');
|
||||
msg = msg.replace('<', '<');
|
||||
msg = msg.replace('&', '&');
|
||||
msg = msg.replace('<br>', '\n');
|
||||
if (msg) {
|
||||
msg = msg.replace('"', '"');
|
||||
msg = msg.replace(/<strong>/g, '');
|
||||
msg = msg.replace(/<\/strong>/g, '');
|
||||
msg = msg.replace(/<em>/g, '');
|
||||
msg = msg.replace(/<\/em>/g, '');
|
||||
msg = msg.replace('>', '>');
|
||||
msg = msg.replace('<', '<');
|
||||
msg = msg.replace('&', '&');
|
||||
msg = msg.replace('<br>', '\n');
|
||||
}
|
||||
|
||||
return msg;
|
||||
},
|
||||
|
||||
@@ -63,6 +63,7 @@ const Department = require('../models/department');
|
||||
const ShareWithUs = require('../models/sharewithus');
|
||||
const Site = require('../models/site');
|
||||
const IscrittiConacreis = require('../models/iscrittiConacreis');
|
||||
const IscrittiArcadei = require('../models/iscrittiArcadei');
|
||||
const Group = require('../models/group');
|
||||
const {Todo} = require('../models/todo');
|
||||
const Hours = require('../models/hours');
|
||||
@@ -105,6 +106,8 @@ module.exports = {
|
||||
mytable = Site;
|
||||
else if (tablename === 'iscritticonacreis')
|
||||
mytable = IscrittiConacreis;
|
||||
else if (tablename === 'iscrittiarcadei')
|
||||
mytable = IscrittiArcadei;
|
||||
else if (tablename === 'groups')
|
||||
mytable = Group;
|
||||
else if (tablename === 'todos')
|
||||
|
||||
Reference in New Issue
Block a user