refactor code
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-11-09 09:16:58 +01:00
parent dbd0e77e12
commit 2ab475791c
1 changed files with 5 additions and 6 deletions

View File

@ -130,13 +130,12 @@ module.exports = Self => {
relation: 'client'
}
});
ctx.args = {
reference: invoiceOut.ref,
recipientId: invoiceOut.clientFk,
recipient: invoiceOut.client().email
};
try {
ctx.args = {
reference: invoiceOut.ref,
recipientId: invoiceOut.clientFk,
recipient: invoiceOut.client().email
};
await models.InvoiceOut.invoiceEmail(ctx);
} catch (err) {}