diff --git a/routes/temp.js b/routes/temp.js index 053b772..3153f51 100644 --- a/routes/temp.js +++ b/routes/temp.js @@ -128,10 +128,10 @@ router.post('/', function (req, res, next) { logger.debug(t); console.log(typeof t); //t = JSON.parse(t); - if(t.hasOwnProperty(data)){ + if(t.hasOwnProperty('data')){ var data = t.data; dataJSON = JSON.parse(data); - if(t.hasOwnProperty(temp)) { + if(t.hasOwnProperty('temp')) { } else