- Uscita PRIMA VERSIONE PiuCheBuono.app
This commit is contained in:
@@ -290,7 +290,7 @@ router.post('/:userId/createorderscart', authenticate, async function (req, res,
|
||||
return res.send({ code: server_constants.RIS_CODE_ERR, status: 0 });
|
||||
else {
|
||||
|
||||
await Order.updateStatusOrders(mycart.items, status);
|
||||
await Order.updateStatusOrders(mycart.items, status);
|
||||
|
||||
const myris = ris;
|
||||
// Cancella il Cart appena salvato in OrdersCart
|
||||
@@ -302,6 +302,8 @@ router.post('/:userId/createorderscart', authenticate, async function (req, res,
|
||||
.then((orders) => {
|
||||
if (!!orders) {
|
||||
|
||||
OrdersCart.updateCmd(orders[0], status, true);
|
||||
|
||||
// Invia la email dell'Ordine
|
||||
sendemail.sendEmail_OrderProduct(user.lang, idapp, orders[0], user)
|
||||
.then(async (ris) => {
|
||||
@@ -384,7 +386,7 @@ router.post('/:userId/ordercartstatus', authenticate, async function (req, res,
|
||||
}
|
||||
|
||||
if (ordertype !== '') {
|
||||
sendemail.sendEmail_Order(user.lang, idapp, orderCart, user, ordertype)
|
||||
sendemail.sendEmail_Order(user.lang, idapp, orderCart, user, ordertype, status)
|
||||
.then((ris) => {
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user