mirror of
https://gitlab.silvrtree.co.uk/martind2000/mdot_server.git
synced 2025-02-25 07:03:35 +00:00
tracking added
This commit is contained in:
parent
5cf7b8cbf5
commit
388c6fa050
@ -23,7 +23,7 @@ module.exports = function(app) {
|
|||||||
var body = req.body;
|
var body = req.body;
|
||||||
var data = {};
|
var data = {};
|
||||||
logger.debug('body', body);
|
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');
|
logger.error('MDot','Missing required parameter');
|
||||||
res.status(400).send({
|
res.status(400).send({
|
||||||
status: 'error',
|
status: 'error',
|
||||||
|
Loading…
Reference in New Issue
Block a user