diff --git a/routes/temp.js b/routes/temp.js index 1c122d9..28556b8 100644 --- a/routes/temp.js +++ b/routes/temp.js @@ -129,7 +129,8 @@ router.post('/', function (req, res, next) { console.log(typeof t); //t = JSON.parse(t); if(t.hasOwnProperty('data')){ - var data = t.data; + logger.debug('We have data'); + /* var data = t.data; dataJSON = JSON.parse(data); if(dataJSON.hasOwnProperty('temp')) { @@ -137,7 +138,7 @@ router.post('/', function (req, res, next) { else { logger.error('No temp data!'); - } + }*/ } else {