add console.log
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-03-01 08:50:30 +01:00
parent 07784ffbfa
commit f6afed485c
2 changed files with 1 additions and 1 deletions

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]);