mirror of
https://gitlab.silvrtree.co.uk/martind2000/mdot_server.git
synced 2025-01-26 22:36:17 +00:00
tracking added
This commit is contained in:
parent
197c1b88d2
commit
5cf7b8cbf5
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user