@budibase/worker 2.7.25-alpha.5 → 2.7.25-alpha.6

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.7.25-alpha.5",
4
+ "version": "2.7.25-alpha.6",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -38,10 +38,10 @@
38
38
  "author": "Budibase",
39
39
  "license": "GPL-3.0",
40
40
  "dependencies": {
41
- "@budibase/backend-core": "2.7.25-alpha.5",
42
- "@budibase/pro": "2.7.25-alpha.5",
43
- "@budibase/string-templates": "2.7.25-alpha.5",
44
- "@budibase/types": "2.7.25-alpha.5",
41
+ "@budibase/backend-core": "2.7.25-alpha.6",
42
+ "@budibase/pro": "2.7.25-alpha.6",
43
+ "@budibase/string-templates": "2.7.25-alpha.6",
44
+ "@budibase/types": "2.7.25-alpha.6",
45
45
  "@koa/router": "8.0.8",
46
46
  "@sentry/node": "6.17.7",
47
47
  "@techpass/passport-openidconnect": "0.3.2",
@@ -105,5 +105,5 @@
105
105
  "typescript": "4.7.3",
106
106
  "update-dotenv": "1.1.1"
107
107
  },
108
- "gitHead": "335c43bec7831b2e61c55339f7b23f73d45f13b9"
108
+ "gitHead": "39bdd6e1fe53da6e9d4528b7bf77f72c5d5cc427"
109
109
  }
@@ -38,7 +38,7 @@ const MAX_USERS_UPLOAD_LIMIT = 1000
38
38
 
39
39
  export const save = async (ctx: UserCtx<User, SaveUserResponse>) => {
40
40
  try {
41
- const currentUserId = ctx.user._id
41
+ const currentUserId = ctx.user?._id
42
42
  const requestUser = ctx.request.body
43
43
 
44
44
  const user = await userSdk.save(requestUser, { currentUserId })