7199-devToTest_2316 #2287
|
@ -46,7 +46,7 @@ module.exports = Self => {
|
|||
html += `<strong>${data}</strong>:<br/>${tryParse(additionalData[data])}<br/>`;
|
||||
|
||||
const subjectReason = httpRequest?.data?.error;
|
||||
smtp.send({
|
||||
await smtp.send({
|
||||
to: `${config.app.reportEmail}, ${emailUser.email}`,
|
||||
subject:
|
||||
'[Support-Salix] ' +
|
||||
|
|
|
@ -114,7 +114,7 @@ BEGIN
|
|||
quantity int(11) DEFAULT '0',
|
||||
buyingValue decimal(10,4) DEFAULT '0.0000',
|
||||
freightValue decimal(10,3) DEFAULT '0.000',
|
||||
packing int(11) DEFAULT '0',
|
||||
packing int(11) DEFAULT '1',
|
||||
`grouping` smallint(5) unsigned NOT NULL DEFAULT '1',
|
||||
groupingMode tinyint(4) NOT NULL DEFAULT 0 ,
|
||||
comissionValue decimal(10,3) DEFAULT '0.000',
|
||||
|
|
|
@ -175,7 +175,7 @@ module.exports = async function(ctx, Self, tickets, reqArgs = {}) {
|
|||
to: config.app.reportEmail,
|
||||
subject: '[API] Nightly ticket closure report',
|
||||
html: body,
|
||||
});
|
||||
}).catch(err => console.error(err));
|
||||
}
|
||||
|
||||
async function invalidEmail(ticket) {
|
||||
|
@ -206,6 +206,6 @@ module.exports = async function(ctx, Self, tickets, reqArgs = {}) {
|
|||
to: ticket.salesPersonEmail,
|
||||
subject: 'No se ha podido enviar el albarán',
|
||||
html: body,
|
||||
});
|
||||
}).catch(err => console.error(err));
|
||||
}
|
||||
};
|
||||
|
|
|
@ -88,7 +88,7 @@ class Email extends Component {
|
|||
force: options.force
|
||||
};
|
||||
|
||||
return smtp.send(mailOptions);
|
||||
return await smtp.send(mailOptions);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue