From f3dd0e5a2c9376313fd57fb97d777f0f106d87ad Mon Sep 17 00:00:00 2001 From: Bluepr1nt Date: Thu, 30 Mar 2017 09:41:38 +0200 Subject: [PATCH] fix --- mean-app/server/routes/thingapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mean-app/server/routes/thingapi.js b/mean-app/server/routes/thingapi.js index d17c053..15847db 100644 --- a/mean-app/server/routes/thingapi.js +++ b/mean-app/server/routes/thingapi.js @@ -84,7 +84,7 @@ console.log(toe1); connection.query( - 'INSERT INTO measurement (TOE1, TOE2, TTE1, TTE2, HT, HOV, HTV, time) VALUES (?, ?, ?, ?, ?, ?, ?, NOW())', [toe1, toe2, tte1, tte2, ht, hov, htv], + 'INSERT INTO measurement (device, TOE1, TOE2, TTE1, TTE2, HT, HOV, HTV, time) VALUES (?, ?, ?, ?, ?, ?, ?, ?, NOW())', [device, toe1, toe2, tte1, tte2, ht, hov, htv], function (error, results, fields) { if (error) throw error;