From d70bb6bf678b1d97f1445f38f9bb109f785f30a0 Mon Sep 17 00:00:00 2001 From: Birm Date: Fri, 3 May 2024 14:52:34 -0400 Subject: [PATCH] don't map points --- handlers/dataHandlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); };