diff --git a/handlers/dataHandlers.js b/handlers/dataHandlers.js index eece6c1..d5a512d 100644 --- a/handlers/dataHandlers.js +++ b/handlers/dataHandlers.js @@ -354,7 +354,7 @@ Mark.pointList = function(req, res, next) { var points = []; mongoDB.find("camic", 'mark', query, false ,{ x: 1, y: 1, _id: 0 }).then((points) => { - req.data = { points: points.map(point => [point.x, point.y]) }; + req.data = points; next(); }).catch((e) => next(e)); };