fix issue with date range filtering in automations
This commit is contained in:
parent
0d097f48e4
commit
c521fa1188
|
@ -108,7 +108,7 @@ export const buildLuceneQuery = filter => {
|
||||||
query.allOr = true
|
query.allOr = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (type === "datetime") {
|
if (type === "datetime" && !isHbs) {
|
||||||
// Ensure date value is a valid date and parse into correct format
|
// Ensure date value is a valid date and parse into correct format
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return
|
return
|
||||||
|
@ -218,6 +218,7 @@ export const runLuceneQuery = (docs, query) => {
|
||||||
|
|
||||||
// Process a range match
|
// Process a range match
|
||||||
const rangeMatch = match("range", (docValue, testValue) => {
|
const rangeMatch = match("range", (docValue, testValue) => {
|
||||||
|
console.log("test")
|
||||||
return (
|
return (
|
||||||
docValue == null ||
|
docValue == null ||
|
||||||
docValue === "" ||
|
docValue === "" ||
|
||||||
|
|
Loading…
Reference in New Issue