From 186beb6a5897a28fefe632ed17d938e3d98cc0a1 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 12 Sep 2024 13:50:04 -0400 Subject: [PATCH] ! --- mccs-it/thermal/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);