!
This commit is contained in:
parent
20da340bf7
commit
186beb6a58
@ -54,9 +54,9 @@ app.post('/print-temp-pw', async (req, res) => {
|
||||
const infoString = Thermal.generateInfo.tempPassword(password);
|
||||
|
||||
// Generate the PDF, saved to disk
|
||||
Thermal.generatePdf(infoString).then(res => {
|
||||
Thermal.generatePdf(infoString).then(result => {
|
||||
// Print the document
|
||||
Thermal.print().then(res => {
|
||||
Thermal.print().then(result => {
|
||||
res.send('PDF sent to printer successfully.');
|
||||
}).catch(e => {
|
||||
console.error('Failed to start printing process:', err);
|
||||
|
Loading…
Reference in New Issue
Block a user