- Tolto Zoom e Sogni come requisiti
- Corretto Email con HTML che si visualizzavano tutti i caratteri HTML...
This commit is contained in:
@@ -63,7 +63,6 @@ const shared_consts = require('../tools/shared_nodejs');
|
||||
UserCost = {
|
||||
FIELDS_REQUISITI: ['verified_email',
|
||||
'profile.teleg_id',
|
||||
'profile.saw_zoom_presentation',
|
||||
'profile.saw_and_accepted',
|
||||
'profile.revolut',
|
||||
'profile.payeer_id',
|
||||
@@ -463,13 +462,13 @@ router.patch('/chval', authenticate, async (req, res) => {
|
||||
}
|
||||
|
||||
if (mydata.table === 'users') {
|
||||
if ('saw_zoom_presentation' in fieldsvalue) {
|
||||
/*if ('saw_zoom_presentation' in fieldsvalue) {
|
||||
if (fieldsvalue['saw_zoom_presentation']) {
|
||||
const messaggio = tools.get__('ZOOM_CONFERMATO');
|
||||
await telegrambot.sendMsgTelegram(idapp, myuser.username, messaggio);
|
||||
await telegrambot.sendMsgTelegramToTheManagersAndZoomeri(idapp, `L\'utente ${rec.name} ${rec.surname} (${rec.username}) è stato confermato per aver visto lo Zoom di Benvenuto`);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
if ('aportador_solidario' in fieldsvalue) {
|
||||
ind_order_ingr = mydata.ind_order_ingr;
|
||||
|
||||
@@ -347,7 +347,16 @@ router.post('/testemail', authenticate, async (req, res) => {
|
||||
lang = req.body.locale;
|
||||
previewonly = req.body.previewonly;
|
||||
|
||||
const ris = await sendemail.testemail(idapp, lang, previewonly);
|
||||
const test = true;
|
||||
|
||||
if (test) {
|
||||
const email = 'pao.loarena77@gmail.com';
|
||||
const myuser = await User.findOne({ idapp, email });
|
||||
|
||||
const ris = await sendemail.testemailHtml(idapp, lang, email, myuser);
|
||||
} else {
|
||||
const ris = await sendemail.testemail(idapp, lang, previewonly);
|
||||
}
|
||||
|
||||
if (ris)
|
||||
return res.send({ code: server_constants.RIS_CODE_OK, msg: '' });
|
||||
|
||||
@@ -163,9 +163,9 @@ router.post('/', async (req, res) => {
|
||||
recorig = await User.findByCellAndNameSurname(user.idapp, user.profile.cell, user.name.slice(0, -1), user.surname);
|
||||
if (!!recorig) {
|
||||
user.profile.teleg_id = recorig.profile.teleg_id;
|
||||
user.profile.saw_zoom_presentation = recorig.profile.saw_zoom_presentation;
|
||||
// user.profile.saw_zoom_presentation = recorig.profile.saw_zoom_presentation;
|
||||
user.profile.saw_and_accepted = recorig.profile.saw_and_accepted;
|
||||
user.profile.my_dream = recorig.profile.my_dream;
|
||||
// user.profile.my_dream = recorig.profile.my_dream;
|
||||
user.profile.email_paypal = recorig.profile.email_paypal;
|
||||
user.profile.payeer_id = recorig.profile.payeer_id;
|
||||
user.profile.advcash_id = recorig.profile.advcash_id;
|
||||
|
||||
Reference in New Issue
Block a user