This commit is contained in:
seb
2026-10-08 01:37:30 +02:00
parent 9ba86c4216
commit cd396363bd
9 changed files with 367 additions and 121 deletions

View File

@@ -58,6 +58,9 @@ export async function posAuthMiddleware(req, res, next) {
}
req.posterminal = terminal;
db.touchLastseen(terminal.id).catch((err) => {
console.error('Failed to touch lastseen for posterminal:', err);
});
next();
} catch (err) {
console.error('POS auth error:', err);