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 f6afed485c - Show all commits

View File

@ -34,7 +34,6 @@ async function test() {
const Jasmine = require('jasmine');
const jasmine = new Jasmine();
// jasmine.seed('68436');
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
jasmine.addReporter(new SpecReporter({

View File

@ -47,6 +47,7 @@ module.exports = Self => {
ids = ids.split(',');
for (let id of ids) {
console.log(zipConfig, totalSize, zipConfig.maxSize);
if (zipConfig && totalSize > zipConfig.maxSize) throw new UserError('Files are too large');
const invoiceOutPdf = await models.InvoiceOut.download(ctx, id, myOptions);
const fileName = extractFileName(invoiceOutPdf[2]);