mirror of
https://gitlab.silvrtree.co.uk/martind2000/mdot_server.git
synced 2025-01-27 13:16:18 +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) {
|
mdotRouter.post('/', function(req, res) {
|
||||||
|
|
||||||
logger.debug('body',req.body);
|
|
||||||
|
var body = req.body;
|
||||||
var data = {};
|
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');
|
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