tracking added

This commit is contained in:
Martin Donnelly 2016-08-12 14:14:58 +01:00
parent 5cf7b8cbf5
commit 388c6fa050

View File

@ -23,7 +23,7 @@ module.exports = function(app) {
var body = req.body;
var data = {};
logger.debug('body', body);
if (!body.hasOwnProperty('locationid') || !body.hasOwnProperty('count') || !body.hasOwnProperty('total')) {
if (!Object.hasOwnProperty.call(body, 'locationid') || !Object.hasOwnProperty.call(body, 'count') || !Object.hasOwnProperty.call(body, 'total')) {
logger.error('MDot','Missing required parameter');
res.status(400).send({
status: 'error',