@budibase/server 2.4.44-alpha.14 → 2.4.44-alpha.16
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/builder/assets/{index.ca078b28.js → index.234f4e8a.js} +1 -1
- package/builder/index.html +1 -1
- package/dist/integrations/redis.js +7 -0
- package/dist/package.json +7 -7
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/integrations/redis.ts +8 -0
- package/src/migrations/functions/usageQuotas/tests/syncRows.spec.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.4.44-alpha.
|
|
4
|
+
"version": "2.4.44-alpha.16",
|
|
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.4.44-alpha.
|
|
49
|
-
"@budibase/client": "2.4.44-alpha.
|
|
50
|
-
"@budibase/pro": "2.4.44-alpha.
|
|
51
|
-
"@budibase/shared-core": "2.4.44-alpha.
|
|
52
|
-
"@budibase/string-templates": "2.4.44-alpha.
|
|
53
|
-
"@budibase/types": "2.4.44-alpha.
|
|
48
|
+
"@budibase/backend-core": "2.4.44-alpha.16",
|
|
49
|
+
"@budibase/client": "2.4.44-alpha.16",
|
|
50
|
+
"@budibase/pro": "2.4.44-alpha.15",
|
|
51
|
+
"@budibase/shared-core": "2.4.44-alpha.16",
|
|
52
|
+
"@budibase/string-templates": "2.4.44-alpha.16",
|
|
53
|
+
"@budibase/types": "2.4.44-alpha.16",
|
|
54
54
|
"@bull-board/api": "3.7.0",
|
|
55
55
|
"@bull-board/koa": "3.9.4",
|
|
56
56
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -175,5 +175,5 @@
|
|
|
175
175
|
"optionalDependencies": {
|
|
176
176
|
"oracledb": "5.3.0"
|
|
177
177
|
},
|
|
178
|
-
"gitHead": "
|
|
178
|
+
"gitHead": "3c4727fe95f8a76285be59ca7b080a5af0861e63"
|
|
179
179
|
}
|
|
@@ -6,6 +6,7 @@ interface RedisConfig {
|
|
|
6
6
|
port: number
|
|
7
7
|
username: string
|
|
8
8
|
password?: string
|
|
9
|
+
db?: number
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
const SCHEMA: Integration = {
|
|
@@ -32,6 +33,12 @@ const SCHEMA: Integration = {
|
|
|
32
33
|
type: "password",
|
|
33
34
|
required: false,
|
|
34
35
|
},
|
|
36
|
+
db: {
|
|
37
|
+
type: "number",
|
|
38
|
+
required: false,
|
|
39
|
+
display: "DB",
|
|
40
|
+
default: 0,
|
|
41
|
+
},
|
|
35
42
|
},
|
|
36
43
|
query: {
|
|
37
44
|
create: {
|
|
@@ -88,6 +95,7 @@ class RedisIntegration {
|
|
|
88
95
|
port: this.config.port,
|
|
89
96
|
username: this.config.username,
|
|
90
97
|
password: this.config.password,
|
|
98
|
+
db: this.config.db,
|
|
91
99
|
})
|
|
92
100
|
}
|
|
93
101
|
|
|
@@ -24,7 +24,7 @@ describe("syncRows", () => {
|
|
|
24
24
|
|
|
25
25
|
// app 1
|
|
26
26
|
const app1 = config.app
|
|
27
|
-
await context.doInAppContext(app1
|
|
27
|
+
await context.doInAppContext(app1!.appId, async () => {
|
|
28
28
|
await config.createTable()
|
|
29
29
|
await config.createRow()
|
|
30
30
|
})
|
|
@@ -43,7 +43,7 @@ describe("syncRows", () => {
|
|
|
43
43
|
usageDoc = await quotas.getQuotaUsage()
|
|
44
44
|
expect(usageDoc.usageQuota.rows).toEqual(3)
|
|
45
45
|
expect(
|
|
46
|
-
usageDoc.apps?.[dbCore.getProdAppID(app1
|
|
46
|
+
usageDoc.apps?.[dbCore.getProdAppID(app1!.appId)].usageQuota.rows
|
|
47
47
|
).toEqual(1)
|
|
48
48
|
expect(
|
|
49
49
|
usageDoc.apps?.[dbCore.getProdAppID(app2.appId)].usageQuota.rows
|