fix: backTest
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-11-09 12:04:19 +01:00
parent 574f2757f4
commit 1ea5ffa6d3
2 changed files with 6 additions and 1 deletions

View File

@ -137,7 +137,9 @@ module.exports = Self => {
recipientId: invoiceOut.clientFk,
recipient: invoiceOut.client().email
};
await models.InvoiceOut.invoiceEmail(ctx);
try {
await models.InvoiceOut.invoiceEmail(ctx);
} catch (err) {}
return invoiceId;
};

View File

@ -12,6 +12,9 @@ describe('InvoiceOut invoiceClient()', () => {
minShipped.setHours(0, 0, 0, 0);
const invoiceSerial = 'A';
const activeCtx = {
getLocale: () => {
return 'en';
},
accessToken: {userId: userId},
__: value => {
return value;