From b41f2ac6ed4cc05b9f2b5ea9c3bbbfac0c4e189c Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Fri, 12 Feb 2016 15:51:36 +0000 Subject: [PATCH] modified to use events, hopefully will fix the crashing particle --- routes/temp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/temp.js b/routes/temp.js index ccde3a3..053b772 100644 --- a/routes/temp.js +++ b/routes/temp.js @@ -126,7 +126,8 @@ router.post('/', function (req, res, next) { var dataJSON={}; console.log('~~~~'); logger.debug(t); - t = JSON.parse(t); + console.log(typeof t); + //t = JSON.parse(t); if(t.hasOwnProperty(data)){ var data = t.data; dataJSON = JSON.parse(data);