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