Se la window viene attivata, e se sono in fase di registrazione, allora controllo se ci sono aggiornamenti ogni 10 secondi, loadSite

Corretto che il link di registrazione se era in minuscolo l'username e venivi registrato in maiuscolo, non lo prendeva.
L'immagine di telegram occorre salvare anche la versione SMALL
Corretto filtro, se cambiavo Regione, non mi resettava la Provincia e la Città
This commit is contained in:
paoloar77
2022-03-10 00:28:23 +01:00
parent e79c22a038
commit 0d916ac81d
6 changed files with 50 additions and 16 deletions

View File

@@ -70,14 +70,22 @@ MsgTemplateSchema.statics.executeQueryTable = function (idapp, params) {
return tools.executeQueryTable(this, idapp, params);
};
MsgTemplateSchema.statics.getMsgByLang = async function (idapp, typemsg, lang) {
MsgTemplateSchema.statics.getMsgByLang = async function (idapp, myuser, typemsg, lang) {
const MsgTemplate = this;
try {
const mymsg = await MsgTemplate.findOne({ idapp, typemsg });
if (!!mymsg) {
if ((!!mymsg["msg_" + lang]) && (!!mymsg["title_" + lang])) {
return { body: mymsg["msg_" + lang], title: mymsg["title_" + lang] }
let body = mymsg["msg_" + lang]
let title = mymsg["title_" + lang]
if (!body) {
body = mymsg["msg_it"]
title = mymsg["title_it"]
}
body = tools.convertSpecialTags(myuser, body);
title = tools.convertSpecialTags(myuser, title);
return { body, title }
}
}
} catch (e) {