modified to use events, hopefully will fix the crashing particle

This commit is contained in:
Martin Donnelly 2016-02-12 15:45:01 +00:00
parent b3477fb9f9
commit 64aeff1485

View File

@ -125,6 +125,7 @@ router.post('/', function (req, res, next) {
var now = new Date();
var dataJSON={};
console.log('~~~~');
logger.debug(t);
if(t.hasOwnProperty(data)){
var data = t.data;
dataJSON = JSON.parse(data);