This commit is contained in:
Martin Donnelly 2016-02-12 15:59:37 +00:00
parent 37e364a0e4
commit 2847f7ea68

View File

@ -129,7 +129,8 @@ router.post('/', function (req, res, next) {
console.log(typeof t); console.log(typeof t);
//t = JSON.parse(t); //t = JSON.parse(t);
if(t.hasOwnProperty('data')){ if(t.hasOwnProperty('data')){
var data = t.data; logger.debug('We have data');
/* var data = t.data;
dataJSON = JSON.parse(data); dataJSON = JSON.parse(data);
if(dataJSON.hasOwnProperty('temp')) { if(dataJSON.hasOwnProperty('temp')) {
@ -137,7 +138,7 @@ router.post('/', function (req, res, next) {
else else
{ {
logger.error('No temp data!'); logger.error('No temp data!');
} }*/
} }
else else
{ {