aggiornamento...
This commit is contained in:
@@ -743,12 +743,13 @@ module.exports = {
|
||||
sendEmail_OrderProduct: async function (lang, idapp, orders, user) {
|
||||
|
||||
try {
|
||||
const msginizio = 'Ordine n: ' + orders.numorder + ' ' + user.name + ' ' + user.surname;
|
||||
const msg = await OrdersCart.getmsgorderTelegram(orders);
|
||||
const msginizio = msg;
|
||||
console.log(msginizio);
|
||||
|
||||
if (process.env.SEND_EMAIL_ORDERS === '1') {
|
||||
await telegrambot.sendMsgTelegramToTheManagers(idapp, msginizio);
|
||||
|
||||
await telegrambot.sendMsgTelegramToTheManagers(idapp, msginizio);
|
||||
if (process.env.SEND_EMAIL_ORDERS === '1') {
|
||||
|
||||
let mylocalsconf = {
|
||||
idapp,
|
||||
@@ -776,12 +777,13 @@ module.exports = {
|
||||
sendEmail_Order: async function (lang, idapp, orders, user, ordertype, status) {
|
||||
|
||||
try {
|
||||
const msginizio = 'INIZIO - sendEmail_Order ' + ordertype + ': ' + tools.getNomeAppByIdApp(idapp);
|
||||
const msg = await OrdersCart.getmsgorderTelegram(orders);
|
||||
const msginizio = msg;
|
||||
console.log(msginizio);
|
||||
|
||||
if (process.env.SEND_EMAIL_ORDERS === '1') {
|
||||
await telegrambot.sendMsgTelegramToTheManagers(idapp, msginizio);
|
||||
|
||||
await telegrambot.sendMsgTelegramToTheManagers(idapp, msginizio);
|
||||
if (process.env.SEND_EMAIL_ORDERS === '1') {
|
||||
|
||||
let mylocalsconf = {
|
||||
idapp,
|
||||
|
||||
Reference in New Issue
Block a user