add config prints

This commit is contained in:
Stefan080106 committed 2023-04-20 22:12:43 +02:00
1 parent ef7ba03f9c
commit 63dfafe329
1 file changed
+1 -1
+1 -1
View File
@@ -145,7 +145,7 @@ async function main(data) {
await createPDF({ filePath, ...data }); await createPDF({ filePath, ...data });
console.log("PDF created, printing now"); console.log("PDF created, printing now");
console.log(cacheFolder + data.foreign_id + ".pdf"); console.log(cacheFolder + data.foreign_id + ".pdf");
await printFile(filePath, 2); await printFile(filePath, config.prints || 1);
} }
// Express Server // Express Server