diff --git a/handlers/dataHandlers.js b/handlers/dataHandlers.js index d5a512d..eece6c1 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; + req.data = { points: points.map(point => [point.x, point.y]) }; next(); }).catch((e) => next(e)); };