regNameSurnameMandatory

askUSernameTelegramToTheReg
@ davanti all'username
This commit is contained in:
Surya Paolo
2024-01-19 23:38:08 +01:00
parent dbcdbd689b
commit e4504bcf9e
3 changed files with 8 additions and 6 deletions

View File

@@ -152,7 +152,7 @@ router.post('/import', authenticate, async (req, res) => {
recGas = await Gasordine.findOne({ idapp, name: product.gas_name }).lean();
}
if (!recGas) {
if (!recGas && !!product.gas_name) {
recGas = new Gasordine({ idapp, name: product.gas_name, active: true });
// Non esiste questo GAS, quindi lo creo !
ris = await recGas.save();

View File

@@ -784,7 +784,7 @@ module.exports = {
const msginizio = msg;
console.log(msginizio);
await telegrambot.sendMsgTelegramToTheManagers(idapp, msginizio);
// await telegrambot.sendMsgTelegramToTheManagers(idapp, msginizio);
if (process.env.SEND_EMAIL_ORDERS === '1') {
@@ -805,11 +805,11 @@ module.exports = {
const esito = this.sendEmail_base('ecommerce/' + ordertype + '/' + lang, mylocalsconf.emailto, mylocalsconf,
mylocalsconf.dataemail.email_reply);
this.sendEmail_base('ecommerce/' + ordertype + '/' + lang, tools.getAdminEmailByIdApp(idapp), mylocalsconf, '');
// this.sendEmail_base('ecommerce/' + ordertype + '/' + lang, tools.getAdminEmailByIdApp(idapp), mylocalsconf, '');
if (tools.isManagAndAdminDifferent(idapp)) {
this.sendEmail_base('ecommerce/' + ordertype + '/' + lang, tools.getManagerEmailByIdApp(idapp), mylocalsconf, '');
}
// if (tools.isManagAndAdminDifferent(idapp)) {
// this.sendEmail_base('ecommerce/' + ordertype + '/' + lang, tools.getManagerEmailByIdApp(idapp), mylocalsconf, '');
// }
}
} else {
console.log('Invio Email non eseguito perchè sei in TEST !');

View File

@@ -497,6 +497,8 @@ module.exports = {
AskInvitantesulBot: 8,
AskUsernameSulBot: 16,
registerUserWithBot: 32,
regNameSurnameMandatory: 64,
askUSernameTelegramToTheReg: 128,
},
MsgTeleg: {