|
@ -395,8 +395,8 @@ cors(corsOptions), (req, res, next) => { |
|
|
console.log(JSON.stringify('mongo connected')) |
|
|
console.log(JSON.stringify('mongo connected')) |
|
|
var datestart = DateTime.fromISO(RES.start).toISODate() |
|
|
var datestart = DateTime.fromISO(RES.start).toISODate() |
|
|
var dateend = DateTime.fromISO(RES.end).toISODate() |
|
|
var dateend = DateTime.fromISO(RES.end).toISODate() |
|
|
var datestart = RES.start |
|
|
var datestart = new Date(RES.start) |
|
|
var dateend = RES.end |
|
|
var dateend = new Date(RES.end) |
|
|
if(datestart && dateend){ |
|
|
if(datestart && dateend){ |
|
|
var search_term = { $and: [ { date: { $gt: datestart } }, { date: { $lt: dateend } } ] }; |
|
|
var search_term = { $and: [ { date: { $gt: datestart } }, { date: { $lt: dateend } } ] }; |
|
|
}else if(datestart){ |
|
|
}else if(datestart){ |
|
|