From 388c6fa050e2206c8ab35cce644898c5a2ef94fc Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Fri, 12 Aug 2016 14:14:58 +0100 Subject: [PATCH] tracking added --- lib/mdot/track.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mdot/track.js b/lib/mdot/track.js index fdee384..89913e8 100644 --- a/lib/mdot/track.js +++ b/lib/mdot/track.js @@ -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',