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',