aggiornamento...

This commit is contained in:
Surya Paolo
2023-12-17 19:19:04 +01:00
parent c71f4af370
commit 50d610b1b1
5 changed files with 195 additions and 92 deletions

View File

@@ -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,