@budibase/worker 2.9.30-alpha.10 → 2.9.30-alpha.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": "2.9.30-alpha.
|
|
4
|
+
"version": "2.9.30-alpha.11",
|
|
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.9.30-alpha.
|
|
42
|
-
"@budibase/pro": "2.9.30-alpha.
|
|
43
|
-
"@budibase/string-templates": "2.9.30-alpha.
|
|
44
|
-
"@budibase/types": "2.9.30-alpha.
|
|
41
|
+
"@budibase/backend-core": "2.9.30-alpha.11",
|
|
42
|
+
"@budibase/pro": "2.9.30-alpha.11",
|
|
43
|
+
"@budibase/string-templates": "2.9.30-alpha.11",
|
|
44
|
+
"@budibase/types": "2.9.30-alpha.11",
|
|
45
45
|
"@koa/router": "8.0.8",
|
|
46
46
|
"@sentry/node": "6.17.7",
|
|
47
47
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "86e421dc0862e9f04ea611997add10fbacf8cd74"
|
|
122
122
|
}
|
|
@@ -48,7 +48,7 @@ export async function generateAPIKey(ctx: any) {
|
|
|
48
48
|
} catch (err) {
|
|
49
49
|
devInfo = { _id: id, userId }
|
|
50
50
|
}
|
|
51
|
-
devInfo.apiKey =
|
|
51
|
+
devInfo.apiKey = apiKey
|
|
52
52
|
await db.put(devInfo)
|
|
53
53
|
ctx.body = cleanupDevInfo(devInfo)
|
|
54
54
|
}
|
|
@@ -63,7 +63,7 @@ export async function fetchAPIKey(ctx: any) {
|
|
|
63
63
|
devInfo = {
|
|
64
64
|
_id: id,
|
|
65
65
|
userId: ctx.user._id,
|
|
66
|
-
apiKey:
|
|
66
|
+
apiKey: newApiKey(),
|
|
67
67
|
}
|
|
68
68
|
await db.put(devInfo)
|
|
69
69
|
}
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
accounts,
|
|
27
27
|
cache,
|
|
28
|
+
ErrorCode,
|
|
28
29
|
events,
|
|
29
30
|
migrations,
|
|
30
|
-
tenancy,
|
|
31
31
|
platform,
|
|
32
|
-
|
|
32
|
+
tenancy,
|
|
33
33
|
} from "@budibase/backend-core"
|
|
34
34
|
import { checkAnyUserExists } from "../../../utilities/users"
|
|
35
35
|
import { isEmailConfigured } from "../../../utilities/email"
|
|
@@ -280,7 +280,7 @@ export const onboardUsers = async (ctx: Ctx<InviteUsersRequest>) => {
|
|
|
280
280
|
let bulkCreateReponse = await userSdk.db.bulkCreate(users, [])
|
|
281
281
|
|
|
282
282
|
// Apply temporary credentials
|
|
283
|
-
|
|
283
|
+
ctx.body = {
|
|
284
284
|
...bulkCreateReponse,
|
|
285
285
|
successful: bulkCreateReponse?.successful.map(user => {
|
|
286
286
|
return {
|
|
@@ -290,8 +290,6 @@ export const onboardUsers = async (ctx: Ctx<InviteUsersRequest>) => {
|
|
|
290
290
|
}),
|
|
291
291
|
created: true,
|
|
292
292
|
}
|
|
293
|
-
|
|
294
|
-
ctx.body = createWithCredentials
|
|
295
293
|
} else {
|
|
296
294
|
ctx.throw(400, "User onboarding failed")
|
|
297
295
|
}
|