diff --git a/src/index.js b/src/index.js index 7614402..50f08af 100644 --- a/src/index.js +++ b/src/index.js @@ -145,7 +145,7 @@ async function main(data) { await createPDF({ filePath, ...data }); console.log("PDF created, printing now"); console.log(cacheFolder + data.foreign_id + ".pdf"); - await printFile(filePath, 2); + await printFile(filePath, config.prints || 1); } // Express Server