modified to use events, hopefully will fix the crashing particle

This commit is contained in:
Martin Donnelly 2016-02-12 15:51:36 +00:00
parent b393903814
commit b41f2ac6ed

View File

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