tracking added

This commit is contained in:
Martin Donnelly 2016-08-12 14:12:32 +01:00
parent 197c1b88d2
commit 5cf7b8cbf5

View File

@ -19,9 +19,11 @@ module.exports = function(app) {
mdotRouter.post('/', function(req, res) {
logger.debug('body',req.body);
var body = req.body;
var data = {};
if (!req.body.hasOwnProperty('locationid') || !req.body.hasOwnProperty('count') || !req.body.hasOwnProperty('total')) {
logger.debug('body', body);
if (!body.hasOwnProperty('locationid') || !body.hasOwnProperty('count') || !body.hasOwnProperty('total')) {
logger.error('MDot','Missing required parameter');
res.status(400).send({
status: 'error',