This commit is contained in:
parent
1a52e58eaa
commit
85a0f8b323
|
@ -43,7 +43,7 @@ module.exports = Self => {
|
|||
ids = ids.split(',');
|
||||
|
||||
for (const id of ids) {
|
||||
const data = models.Route.generateCmrPdf(id);
|
||||
const data = await models.Route.generateCmrPdf(ctx, id, options);
|
||||
zip.file(`${id}.pdf`, data, {binary: true});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue