aggiornamenti su PCB

This commit is contained in:
Surya Paolo
2024-10-22 15:26:29 +02:00
parent 0d466f01b6
commit 27aa42507a
8 changed files with 33 additions and 31 deletions

View File

@@ -227,11 +227,9 @@ module.exports.findAllIdApp = async function (idapp, code, id) {
module.exports.getProductByCode = function (idapp, code) {
return productInfo.findAllIdApp(idapp, code);
}
module.exports.replaceProductImgToImageFile = async function () {
module.exports.replaceProductImgToImageFile = async function (abilitaserver) {
const ProductInfo = this;
let abilitaserver = true;
if (abilitaserver) {
// const result = await ProductInfo.updateMany({ "img": { $exists: true } }, { $rename: { 'img': 'imagefile' } });

View File

@@ -2375,9 +2375,9 @@ UserSchema.statics.setFriendsCmd = async function (req, idapp, usernameOrig, use
// await this.setFriendsCmd(req, idapp, usernameOrig, usernameDest,
// shared_consts.FRIENDSCMD.SETFRIEND, value);
msgOrig = i18n.__({ phrase: '✅ Hai Abilitato l\'accesso alla App a %s !', locale: userDest.lang }, userDest.username);
msgDest = i18n.__({ phrase: '✅ Sei stato Abilitato correttamente da %s!', locale: lang }, usernameOrig);
msgAdmin = i18n.__({ phrase: '✅ %s è stato Abilitato correttamente (da %s)!', locale: userDest.lang }, userDest.username, usernameOrig);
msgOrig = i18n.__({ phrase: '✅ Hai Ammesso l\'accesso alla App a %s !', locale: userDest.lang }, userDest.username);
msgDest = i18n.__({ phrase: '✅ Sei stato Ammesso correttamente da %s!', locale: lang }, usernameOrig);
msgAdmin = i18n.__({ phrase: '✅ %s è stato Ammesso correttamente (da %s)!', locale: userDest.lang }, userDest.username, usernameOrig);
} else {
msgOrig = i18n.__({ phrase: '🚫 Hai rifiutato l\'accesso alla App di RISO da parte di %s!', locale: userDest.lang }, userDest.username);
msgDest = i18n.__({ phrase: '🚫 Ti è stato rifiutato l\'accesso. Probabilmente l\'username con cui ti sei registrato non ti conosce. (%s) !<br>Contatta l\'Assistenza Tecnica.', locale: lang }, usernameOrig);