@budibase/worker 2.4.42-alpha.0 → 2.4.42-alpha.2
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/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.4.42-alpha.
|
|
4
|
+
"version": "2.4.42-alpha.2",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"author": "Budibase",
|
|
37
37
|
"license": "GPL-3.0",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@budibase/backend-core": "2.4.42-alpha.
|
|
40
|
-
"@budibase/pro": "2.4.
|
|
41
|
-
"@budibase/string-templates": "2.4.42-alpha.
|
|
42
|
-
"@budibase/types": "2.4.42-alpha.
|
|
39
|
+
"@budibase/backend-core": "2.4.42-alpha.2",
|
|
40
|
+
"@budibase/pro": "2.4.42-alpha.1",
|
|
41
|
+
"@budibase/string-templates": "2.4.42-alpha.2",
|
|
42
|
+
"@budibase/types": "2.4.42-alpha.2",
|
|
43
43
|
"@koa/router": "8.0.8",
|
|
44
44
|
"@sentry/node": "6.17.7",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"typescript": "4.7.3",
|
|
102
102
|
"update-dotenv": "1.1.1"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "4fe26031c5fed1bafd904d365e853e2f034dee52"
|
|
105
105
|
}
|
|
@@ -7,6 +7,7 @@ export const fetch = async (ctx: BBContext) => {
|
|
|
7
7
|
cloud: !env.SELF_HOSTED,
|
|
8
8
|
accountPortalUrl: env.ACCOUNT_PORTAL_URL,
|
|
9
9
|
disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
|
|
10
|
+
baseUrl: env.PLATFORM_URL,
|
|
10
11
|
// in test need to pretend its in production for the UI (Cypress)
|
|
11
12
|
isDev: env.isDev() && !env.isTest(),
|
|
12
13
|
}
|
|
@@ -74,3 +74,10 @@ async function removeTenantUsers(tenantId: string) {
|
|
|
74
74
|
throw err
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
export async function tenantInfo(tenantId: string) {
|
|
79
|
+
const globalDbName = tenancy.getGlobalDBName(tenantId)
|
|
80
|
+
return {
|
|
81
|
+
exists: await dbCore.dbExists(globalDbName),
|
|
82
|
+
}
|
|
83
|
+
}
|
package/src/tests/api/tenants.ts
CHANGED
|
@@ -2,8 +2,10 @@ import TestConfiguration from "../TestConfiguration"
|
|
|
2
2
|
import { TestAPI, TestAPIOpts } from "./base"
|
|
3
3
|
|
|
4
4
|
export class TenantAPI extends TestAPI {
|
|
5
|
+
config: TestConfiguration
|
|
5
6
|
constructor(config: TestConfiguration) {
|
|
6
7
|
super(config)
|
|
8
|
+
this.config = config
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
delete = (tenantId: string, opts?: TestAPIOpts) => {
|