@budibase/server 2.6.20 → 2.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.6.
|
|
4
|
+
"version": "2.6.22",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"license": "GPL-3.0",
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
48
|
-
"@budibase/backend-core": "^2.6.
|
|
49
|
-
"@budibase/client": "^2.6.
|
|
50
|
-
"@budibase/pro": "2.6.
|
|
51
|
-
"@budibase/shared-core": "^2.6.
|
|
52
|
-
"@budibase/string-templates": "^2.6.
|
|
53
|
-
"@budibase/types": "^2.6.
|
|
48
|
+
"@budibase/backend-core": "^2.6.22",
|
|
49
|
+
"@budibase/client": "^2.6.22",
|
|
50
|
+
"@budibase/pro": "2.6.21",
|
|
51
|
+
"@budibase/shared-core": "^2.6.22",
|
|
52
|
+
"@budibase/string-templates": "^2.6.22",
|
|
53
|
+
"@budibase/types": "^2.6.22",
|
|
54
54
|
"@bull-board/api": "3.7.0",
|
|
55
55
|
"@bull-board/koa": "3.9.4",
|
|
56
56
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -176,5 +176,5 @@
|
|
|
176
176
|
"optionalDependencies": {
|
|
177
177
|
"oracledb": "5.3.0"
|
|
178
178
|
},
|
|
179
|
-
"gitHead": "
|
|
179
|
+
"gitHead": "6937bcd24a7338ccb9e392f5cb4131a5be4b4b24"
|
|
180
180
|
}
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
SearchFilters,
|
|
14
14
|
Table,
|
|
15
15
|
} from "@budibase/types"
|
|
16
|
+
import { db as dbCore } from "@budibase/backend-core"
|
|
16
17
|
|
|
17
18
|
enum SortOrder {
|
|
18
19
|
ASCENDING = "ascending",
|
|
@@ -117,7 +118,11 @@ function typeCoercion(filters: SearchFilters, table: Table) {
|
|
|
117
118
|
const searchParam = filters[key]
|
|
118
119
|
if (typeof searchParam === "object") {
|
|
119
120
|
for (let [property, value] of Object.entries(searchParam)) {
|
|
120
|
-
|
|
121
|
+
// We need to strip numerical prefixes here, so that we can look up
|
|
122
|
+
// the correct field name in the schema
|
|
123
|
+
const columnName = dbCore.removeKeyNumbering(property)
|
|
124
|
+
const column = table.schema[columnName]
|
|
125
|
+
|
|
121
126
|
// convert string inputs
|
|
122
127
|
if (!column || typeof value !== "string") {
|
|
123
128
|
continue
|