From a2572889e90825e55038c3a58f537ff000626881 Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Tue, 21 Jun 2022 09:40:37 +0100 Subject: [PATCH] Change constant to pascal case --- packages/frontend-core/src/constants.js | 2 +- packages/frontend-core/src/utils/lucene.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend-core/src/constants.js b/packages/frontend-core/src/constants.js index 3389f88325..9ca47de23f 100644 --- a/packages/frontend-core/src/constants.js +++ b/packages/frontend-core/src/constants.js @@ -67,7 +67,7 @@ export const ApiVersion = "1" /** * Maximum minimum range for SQL number values */ -export const SQL_NUMBER_TYPE_RANGE_MAP = { +export const SqlNumberTypeRangeMap = { integer: { max: 2147483647, min: -2147483648, diff --git a/packages/frontend-core/src/utils/lucene.js b/packages/frontend-core/src/utils/lucene.js index b4759eb656..616b11b410 100644 --- a/packages/frontend-core/src/utils/lucene.js +++ b/packages/frontend-core/src/utils/lucene.js @@ -1,5 +1,5 @@ import { Helpers } from "@budibase/bbui" -import { OperatorOptions, SQL_NUMBER_TYPE_RANGE_MAP } from "../constants" +import { OperatorOptions, SqlNumberTypeRangeMap } from "../constants" /** * Returns the valid operator options for a certain data type @@ -107,10 +107,10 @@ export const buildLuceneQuery = filter => { } if (operator.startsWith("range")) { const minint = - SQL_NUMBER_TYPE_RANGE_MAP[externalType]?.min || + SqlNumberTypeRangeMap[externalType]?.min || Number.MIN_SAFE_INTEGER const maxint = - SQL_NUMBER_TYPE_RANGE_MAP[externalType]?.max || + SqlNumberTypeRangeMap[externalType]?.max || Number.MAX_SAFE_INTEGER if (!query.range[field]) { query.range[field] = {