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, recipientId: invoiceOut.clientFk,
recipient: invoiceOut.client().email recipient: invoiceOut.client().email
}; };
try {
await models.InvoiceOut.invoiceEmail(ctx); await models.InvoiceOut.invoiceEmail(ctx);
} catch (err) {}
return invoiceId; return invoiceId;
}; };

View File

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