Change constant to pascal case

This commit is contained in:
Mel O'Hagan 2022-06-21 09:40:37 +01:00
parent a888d9a273
commit a2572889e9
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ export const ApiVersion = "1"
/** /**
* Maximum minimum range for SQL number values * Maximum minimum range for SQL number values
*/ */
export const SQL_NUMBER_TYPE_RANGE_MAP = { export const SqlNumberTypeRangeMap = {
integer: { integer: {
max: 2147483647, max: 2147483647,
min: -2147483648, min: -2147483648,

View File

@ -1,5 +1,5 @@
import { Helpers } from "@budibase/bbui" 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 * Returns the valid operator options for a certain data type
@ -107,10 +107,10 @@ export const buildLuceneQuery = filter => {
} }
if (operator.startsWith("range")) { if (operator.startsWith("range")) {
const minint = const minint =
SQL_NUMBER_TYPE_RANGE_MAP[externalType]?.min || SqlNumberTypeRangeMap[externalType]?.min ||
Number.MIN_SAFE_INTEGER Number.MIN_SAFE_INTEGER
const maxint = const maxint =
SQL_NUMBER_TYPE_RANGE_MAP[externalType]?.max || SqlNumberTypeRangeMap[externalType]?.max ||
Number.MAX_SAFE_INTEGER Number.MAX_SAFE_INTEGER
if (!query.range[field]) { if (!query.range[field]) {
query.range[field] = { query.range[field] = {