From ecfb8dd830d0f07bf9e507b22564dd686014cd1a Mon Sep 17 00:00:00 2001 From: Birm Date: Fri, 3 May 2024 15:21:16 -0400 Subject: [PATCH] try array again --- handlers/dataHandlers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); };