From 85810273407662703f9722a54dcc1b21c2da2cb4 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 12 Sep 2024 13:45:18 -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 f481840..a1ea9c2 100644 --- a/mccs-it/thermal/app.js +++ b/mccs-it/thermal/app.js @@ -21,9 +21,9 @@ app.post('/print-credentials', async (req, res) => { const infoString = Thermal.generateInfo.credentials(username, studentId); // Generate the PDF, saved to disk - Thermal.generatePdf(infoString).then(res => { + Thermal.generatePdf(infoString).then(resolve => { // Print the document - Thermal.print().then(res => { + Thermal.print().then(resolve => { res.send('PDF sent to printer successfully.'); }).catch(e => { console.error('Failed to start printing process:', e);