From f732c5a63b111ab44138f07b8edfb4546a088bc9 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 11 Dec 2020 02:31:20 +0200 Subject: [PATCH] add rest --- swarmlab-app/src/run/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarmlab-app/src/run/app.js b/swarmlab-app/src/run/app.js index 169b767..a9dbf5e 100755 --- a/swarmlab-app/src/run/app.js +++ b/swarmlab-app/src/run/app.js @@ -395,6 +395,8 @@ cors(corsOptions), (req, res, next) => { console.log(JSON.stringify('mongo connected')) var datestart = DateTime.fromISO(RES.start).toISODate() var dateend = DateTime.fromISO(RES.end).toISODate() + var datestart = RES.start + var dateend = RES.end if(datestart && dateend){ var search_term = { $and: [ { date: { $gt: datestart } }, { date: { $lt: dateend } } ] }; }else if(datestart){