Browse Source

add rest

master
zeus 4 years ago
parent
commit
f732c5a63b
  1. 2
      swarmlab-app/src/run/app.js

2
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){

Loading…
Cancel
Save