@budibase/worker 3.22.7 → 3.23.1

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.22.7",
4
+ "version": "3.23.1",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -89,7 +89,6 @@
89
89
  "rimraf": "3.0.2",
90
90
  "superagent": "^10.1.1",
91
91
  "supertest": "6.3.3",
92
- "testcontainers": "10.16.0",
93
92
  "timekeeper": "2.2.0"
94
93
  },
95
94
  "resolutions": {
@@ -110,5 +109,5 @@
110
109
  }
111
110
  }
112
111
  },
113
- "gitHead": "e1771079f50e7bbd5ff170361b3adcb840102752"
112
+ "gitHead": "ade970d3ee9b56413873984aefa4b39297002204"
114
113
  }
@@ -513,7 +513,7 @@ export const addWorkspaceIdToInvite = async (
513
513
  ) => {
514
514
  const { code, role } = ctx.params
515
515
 
516
- const workspaceId = await backendCoreUtils.getAppIdFromCtx(ctx)
516
+ const workspaceId = await backendCoreUtils.getWorkspaceIdFromCtx(ctx)
517
517
  if (!workspaceId) {
518
518
  ctx.throw(400, "Workspace id not set")
519
519
  }
@@ -536,7 +536,7 @@ export const removeWorkspaceIdFromInvite = async (
536
536
  ) => {
537
537
  const { code } = ctx.params
538
538
 
539
- const workspaceId = await backendCoreUtils.getAppIdFromCtx(ctx)
539
+ const workspaceId = await backendCoreUtils.getWorkspaceIdFromCtx(ctx)
540
540
  if (!workspaceId) {
541
541
  ctx.throw(400, "Workspace id not set")
542
542
  }
@@ -651,7 +651,7 @@ async function handleUserWorkspacePermission(
651
651
 
652
652
  const currentUserId = ctx.user?._id
653
653
 
654
- const workspaceId = await backendCoreUtils.getAppIdFromCtx(ctx)
654
+ const workspaceId = await backendCoreUtils.getWorkspaceIdFromCtx(ctx)
655
655
  if (!workspaceId) {
656
656
  ctx.throw(400, "Workspace id not set")
657
657
  }