@budibase/worker 2.23.7 → 2.23.10

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.23.7",
4
+ "version": "2.23.10",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -37,10 +37,10 @@
37
37
  "author": "Budibase",
38
38
  "license": "GPL-3.0",
39
39
  "dependencies": {
40
- "@budibase/backend-core": "2.23.7",
41
- "@budibase/pro": "2.23.7",
42
- "@budibase/string-templates": "2.23.7",
43
- "@budibase/types": "2.23.7",
40
+ "@budibase/backend-core": "2.23.10",
41
+ "@budibase/pro": "2.23.10",
42
+ "@budibase/string-templates": "2.23.10",
43
+ "@budibase/types": "2.23.10",
44
44
  "@koa/router": "8.0.8",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
46
46
  "@types/global-agent": "2.1.1",
@@ -108,5 +108,5 @@
108
108
  }
109
109
  }
110
110
  },
111
- "gitHead": "c57dcbb5ee45152210670041dc18eae00460b159"
111
+ "gitHead": "b588d75a8af5c4f3ab2641997282879a0207265e"
112
112
  }
@@ -116,7 +116,8 @@ const parseBooleanParam = (param: any) => {
116
116
  export const adminUser = async (
117
117
  ctx: Ctx<CreateAdminUserRequest, CreateAdminUserResponse>
118
118
  ) => {
119
- const { email, password, tenantId, ssoId } = ctx.request.body
119
+ const { email, password, tenantId, ssoId, givenName, familyName } =
120
+ ctx.request.body
120
121
 
121
122
  if (await platform.tenants.exists(tenantId)) {
122
123
  ctx.throw(403, "Organisation already exists.")
@@ -151,6 +152,8 @@ export const adminUser = async (
151
152
  ssoId,
152
153
  hashPassword,
153
154
  requirePassword,
155
+ firstName: givenName,
156
+ lastName: familyName,
154
157
  })
155
158
 
156
159
  // events
@@ -16,6 +16,8 @@ function buildAdminInitValidation() {
16
16
  password: OPTIONAL_STRING,
17
17
  tenantId: Joi.string().required(),
18
18
  ssoId: Joi.string(),
19
+ familyName: OPTIONAL_STRING,
20
+ givenName: OPTIONAL_STRING,
19
21
  })
20
22
  .required()
21
23
  .unknown(false)