@budibase/worker 3.18.10 → 3.18.11

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": "3.18.10",
4
+ "version": "3.18.11",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "@budibase/string-templates": "*",
36
36
  "@budibase/types": "*",
37
37
  "@koa/router": "13.1.0",
38
- "@techpass/passport-openidconnect": "1.0.0",
38
+ "@techpass/passport-openidconnect": "0.3.3",
39
39
  "@types/global-agent": "2.1.1",
40
40
  "aws-sdk": "2.1692.0",
41
41
  "bcrypt": "5.1.0",
@@ -109,5 +109,5 @@
109
109
  }
110
110
  }
111
111
  },
112
- "gitHead": "ebe154147ba7bbe7aafe7365a6aaa96bc89605d1"
112
+ "gitHead": "c3163f7849e2b1ab1df4a6b17e6022772239480e"
113
113
  }
@@ -9,7 +9,7 @@ import {
9
9
  Ctx,
10
10
  FetchGlobalRolesResponse,
11
11
  FindGlobalRoleResponse,
12
- RemoveAppRoleResponse,
12
+ RemoveWorkspaceRoleResponse,
13
13
  Workspace,
14
14
  } from "@budibase/types"
15
15
  import sdk from "../../../sdk"
@@ -45,7 +45,9 @@ export async function find(ctx: Ctx<void, FindGlobalRoleResponse>) {
45
45
  dbCore.getDevWorkspaceID(appId),
46
46
  async () => {
47
47
  const db = context.getWorkspaceDB()
48
- const app = await db.get<Workspace>(dbCore.DocumentType.APP_METADATA)
48
+ const app = await db.get<Workspace>(
49
+ dbCore.DocumentType.WORKSPACE_METADATA
50
+ )
49
51
  ctx.body = {
50
52
  roles: await roles.getAllRoles(),
51
53
  name: app.name,
@@ -56,7 +58,9 @@ export async function find(ctx: Ctx<void, FindGlobalRoleResponse>) {
56
58
  )
57
59
  }
58
60
 
59
- export async function removeAppRole(ctx: Ctx<void, RemoveAppRoleResponse>) {
61
+ export async function removeAppRole(
62
+ ctx: Ctx<void, RemoveWorkspaceRoleResponse>
63
+ ) {
60
64
  const { appId } = ctx.params
61
65
  const db = tenancy.getGlobalDB()
62
66
  const users = await sdk.users.db.allUsers()