Browse Source

Linting.

master
mike12345567 4 years ago
parent
commit
b763fda27f
  1. 3
      packages/frontend-core/src/utils/lucene.js

3
packages/frontend-core/src/utils/lucene.js

@ -100,7 +100,8 @@ export const buildLuceneQuery = filter => {
if (Array.isArray(filter)) { if (Array.isArray(filter)) {
filter.forEach(expression => { filter.forEach(expression => {
let { operator, field, type, value, externalType } = 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 // Parse all values into correct types
if (type === "datetime" && value) { if (type === "datetime" && value) {
value = new Date(value).toISOString() value = new Date(value).toISOString()

Loading…
Cancel
Save