modified to use events, hopefully will fix the crashing particle

This commit is contained in:
Martin Donnelly 2016-02-12 15:55:18 +00:00
parent b41f2ac6ed
commit d36e9e14cc

View File

@ -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