add config prints
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user