Added missing parameters
This commit is contained in:
@@ -32,7 +32,7 @@ router.get('/data/:device', function(req, res) {
|
||||
let devid = req.params.device;
|
||||
|
||||
connection.query(
|
||||
'SELECT TOE1, time FROM measurement WHERE device = ? ORDER BY time DESC LIMIT 0,25', [devid],
|
||||
'SELECT TOE1, TOE2, HOV, HT, time FROM measurement WHERE device = ? ORDER BY time DESC LIMIT 0,25', [devid],
|
||||
function (error, results, fields) {
|
||||
if (error) throw error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user