Hotfix: error message causes crash

This commit is contained in:
2019-06-11 23:43:17 +10:00
parent 76ca441582
commit 5808b70227
+1 -1
View File
@@ -55,7 +55,7 @@ const selectActiveBadge = (connection) => (req, res) => {
if (err) throw err; if (err) throw err;
if (credentials[0].total !== 1) { if (credentials[0].total !== 1) {
res.status(400).write(log('Invalid active badge select credentials', JSON.stringify(body), body.id, body.token)); res.status(400).write(log('Invalid active badge select credentials', req.body.id, req.body.token));
res.end(); res.end();
return; return;
} }