fix query by time

build-default-monitor-config-from-definitions
Moe 2020-05-24 07:46:00 -07:00
parent a5b04de5de
commit aa390287f0
1 changed files with 5 additions and 5 deletions

View File

@ -180,15 +180,15 @@ module.exports = function(s,config){
const monitorId = options.monitorId
const limit = options.limit
const archived = options.archived
const endTime = options.endTime
const startTimeOperator = options.startTimeOperator
const endTimeOperator = options.endTimeOperator
const startTime = options.startTime
const theTableSelected = options.table
const endIsStartTo = options.endIsStartTo
const userDetails = user.details
const rowName = options.rowName || 'rows'
const preliminaryValidationFailed = options.preliminaryValidationFailed || false
var endTime = options.endTime
var startTimeOperator = options.startTimeOperator
var endTimeOperator = options.endTimeOperator
var startTime = options.startTime
if(preliminaryValidationFailed){
callback([]);
return
@ -244,7 +244,7 @@ module.exports = function(s,config){
startTimeOperator = startTimeOperator || '>='
}
if(!endTimeOperator || endTimeOperator==''){
endTimeOperator = endTimeOperator || '>='
endTimeOperator = endTimeOperator || '<='
}
var theEndParameter = '`end`'
if(endIsStartTo){