1
0
Fork 0
mirror of synced 2024-06-02 02:25:17 +12:00

fix issue with date range filtering in automations

This commit is contained in:
Peter Clement 2022-09-13 17:11:37 +01:00
parent 0d097f48e4
commit c521fa1188

View file

@ -108,7 +108,7 @@ export const buildLuceneQuery = filter => {
query.allOr = true
return
}
if (type === "datetime") {
if (type === "datetime" && !isHbs) {
// Ensure date value is a valid date and parse into correct format
if (!value) {
return
@ -218,6 +218,7 @@ export const runLuceneQuery = (docs, query) => {
// Process a range match
const rangeMatch = match("range", (docValue, testValue) => {
console.log("test")
return (
docValue == null ||
docValue === "" ||