@budibase/worker 1.4.8-alpha.5 → 1.4.8-alpha.7

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": "1.4.8-alpha.5",
4
+ "version": "1.4.8-alpha.7",
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": "1.4.8-alpha.5",
40
- "@budibase/pro": "1.4.8-alpha.4",
41
- "@budibase/string-templates": "1.4.8-alpha.5",
42
- "@budibase/types": "1.4.8-alpha.5",
39
+ "@budibase/backend-core": "1.4.8-alpha.7",
40
+ "@budibase/pro": "1.4.8-alpha.6",
41
+ "@budibase/string-templates": "1.4.8-alpha.7",
42
+ "@budibase/types": "1.4.8-alpha.7",
43
43
  "@koa/router": "8.0.8",
44
44
  "@sentry/node": "6.17.7",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
@@ -104,5 +104,5 @@
104
104
  "./scripts/jestSetup.js"
105
105
  ]
106
106
  },
107
- "gitHead": "e20ff9919df9d688140296fce3313d45d78ec3d2"
107
+ "gitHead": "c75ff1cd4a6576cdefad15a75588edfc6201ee1b"
108
108
  }
@@ -28,6 +28,7 @@ async function init() {
28
28
  APPS_URL: "http://localhost:4001",
29
29
  SERVICE: "worker-service",
30
30
  DEPLOYMENT_ENVIRONMENT: "development",
31
+ TENANT_FEATURE_FLAGS: "*:LICENSING,*:USER_GROUPS",
31
32
  }
32
33
  let envFile = ""
33
34
  Object.keys(envFileJson).forEach(key => {
@@ -24,6 +24,11 @@ export const getInfo = async (ctx: any) => {
24
24
  ctx.status = 200
25
25
  }
26
26
 
27
+ export const deleteInfo = async (ctx: any) => {
28
+ await licensing.deleteLicenseInfo()
29
+ ctx.status = 200
30
+ }
31
+
27
32
  export const getQuotaUsage = async (ctx: any) => {
28
33
  ctx.body = await quotas.getQuotaUsage()
29
34
  }
@@ -7,6 +7,7 @@ router
7
7
  .post("/api/global/license/activate", controller.activate)
8
8
  .post("/api/global/license/refresh", controller.refresh)
9
9
  .get("/api/global/license/info", controller.getInfo)
10
+ .delete("/api/global/license/info", controller.deleteInfo)
10
11
  .get("/api/global/license/usage", controller.getQuotaUsage)
11
12
 
12
13
  export = router