fix call to script

This commit is contained in:
Skylar Grant 2024-09-12 12:26:55 -04:00
parent d50cdae095
commit f6a5ec5a77

View File

@ -31,7 +31,7 @@ app.post('/print-temp-pw', async (req, res) => {
if (!password) {
return res.status(400).json({ message: 'Password is required.' });
}
await Thermal.printCredentials(password, req, res);
await Thermal.printTempPassword(password, req, res);
} catch (error) {
console.error('Print Error:', error);
res.status(500).json({ message: 'Print Error', error: error.message });