diff --git a/mccs-it/thermal/app.js b/mccs-it/thermal/app.js index df3e955..205e952 100644 --- a/mccs-it/thermal/app.js +++ b/mccs-it/thermal/app.js @@ -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);