From 69d288eb261c8a3864ff7316552cdb6505cac017 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 13 Sep 2024 10:06:12 -0400 Subject: [PATCH] ? --- mccs-it/thermal/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mccs-it/thermal/app.js b/mccs-it/thermal/app.js index 5d4e348..f590477 100644 --- a/mccs-it/thermal/app.js +++ b/mccs-it/thermal/app.js @@ -22,7 +22,7 @@ app.post('/print-credentials', async (req, res) => { // Generate the PDF, saved to disk Thermal.generatePdf(infoArray).then((result) => { - res.status(200).json({ message: 'PDF file written successfully.' }); + res.send('PDF file written successfully.'); }).catch(e => { console.error(e); res.status(500).json({ message: 'Error writing PDF file', error: e.message }); @@ -49,7 +49,7 @@ app.post('/print-temp-pw', async (req, res) => { // Generate the PDF, saved to disk Thermal.generatePdf(infoArray).then((result) => { - res.status(200).json({ message: 'PDF file written successfully.' }); + res.send('PDF file written successfully.'); }).catch(e => { console.error(e); res.status(500).json({ message: 'Error writing PDF file', error: err.message }); @@ -68,7 +68,7 @@ app.post('/print-mcc', async (req, res) => { // Generate the PDF, saved to disk Thermal.generatePdf(infoArray).then((result) => { - res.status(200).json({ message: 'PDF file written successfully.' }); + res.send('PDF file written successfully.'); }).catch(e => { console.error(e); res.status(500).json({ message: 'Error writing PDF file', error: e.message });