This commit is contained in:
mike12345567 2022-07-28 13:40:04 +01:00
parent 348f7e2d1c
commit b20ef0c146
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,8 @@ export const buildLuceneQuery = filter => {
if (Array.isArray(filter)) {
filter.forEach(expression => {
let { operator, field, type, value, externalType } = expression
const isHbs = typeof value === "string" && value.match(HBS_REGEX)?.length > 0
const isHbs =
typeof value === "string" && value.match(HBS_REGEX)?.length > 0
// Parse all values into correct types
if (type === "datetime" && value) {
value = new Date(value).toISOString()