5035-intermittent_backTest2 #1365

Merged
vicent merged 9 commits from 5035-intermittent_backTest2 into dev 2023-03-06 08:32:15 +00:00
2 changed files with 1 additions and 1 deletions
Showing only changes of commit 0b240e7925 - Show all commits

View File

@ -44,7 +44,6 @@ module.exports = Self => {
try {
const invoiceOut = await Self.findById(id, null, myOptions);
const hasInvoicing = await models.Account.hasRole(userId, 'invoicing', myOptions);
console.log(hasInvoicing);
console.log(invoiceOut);
if (invoiceOut.hasPdf && !hasInvoicing)
throw new UserError(`You don't have enough privileges`);

View File

@ -65,6 +65,7 @@ describe('InvoiceOut filter()', () => {
await invoiceOut.updateAttribute('hasPdf', true, options);
const result = await models.InvoiceOut.filter(ctx, {id: invoiceOut.id}, options);
console.log(result);
expect(result.length).toEqual(1);