u
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user