regNameSurnameMandatory
askUSernameTelegramToTheReg @ davanti all'username
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 !');
|
||||
|
||||
@@ -497,6 +497,8 @@ module.exports = {
|
||||
AskInvitantesulBot: 8,
|
||||
AskUsernameSulBot: 16,
|
||||
registerUserWithBot: 32,
|
||||
regNameSurnameMandatory: 64,
|
||||
askUSernameTelegramToTheReg: 128,
|
||||
},
|
||||
|
||||
MsgTeleg: {
|
||||
|
||||
Reference in New Issue
Block a user