1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00
This commit is contained in:
mike12345567 2022-07-28 13:40:04 +01:00
parent 34432d5862
commit b763fda27f

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()