@budibase/worker 2.4.27-alpha.1 → 2.4.27-alpha.3
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.4.27-alpha.
|
|
4
|
+
"version": "2.4.27-alpha.3",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"author": "Budibase",
|
|
37
37
|
"license": "GPL-3.0",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@budibase/backend-core": "2.4.27-alpha.
|
|
40
|
-
"@budibase/pro": "2.4.27-alpha.
|
|
41
|
-
"@budibase/string-templates": "2.4.27-alpha.
|
|
42
|
-
"@budibase/types": "2.4.27-alpha.
|
|
39
|
+
"@budibase/backend-core": "2.4.27-alpha.3",
|
|
40
|
+
"@budibase/pro": "2.4.27-alpha.2",
|
|
41
|
+
"@budibase/string-templates": "2.4.27-alpha.3",
|
|
42
|
+
"@budibase/types": "2.4.27-alpha.3",
|
|
43
43
|
"@koa/router": "8.0.8",
|
|
44
44
|
"@sentry/node": "6.17.7",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"typescript": "4.7.3",
|
|
102
102
|
"update-dotenv": "1.1.1"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "81bda9b5ef9fa19a67425cd06758b7cb448034d0"
|
|
105
105
|
}
|
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
getInviteCodes,
|
|
4
4
|
updateInviteCode,
|
|
5
5
|
} from "../../../utilities/redis"
|
|
6
|
-
// import sdk from "../../../sdk"
|
|
7
6
|
import * as userSdk from "../../../sdk/users"
|
|
8
7
|
import env from "../../../environment"
|
|
9
8
|
import {
|
|
@@ -26,11 +25,11 @@ import {
|
|
|
26
25
|
import {
|
|
27
26
|
accounts,
|
|
28
27
|
cache,
|
|
29
|
-
errors,
|
|
30
28
|
events,
|
|
31
29
|
migrations,
|
|
32
30
|
tenancy,
|
|
33
31
|
platform,
|
|
32
|
+
ErrorCode,
|
|
34
33
|
} from "@budibase/backend-core"
|
|
35
34
|
import { checkAnyUserExists } from "../../../utilities/users"
|
|
36
35
|
import { isEmailConfigured } from "../../../utilities/email"
|
|
@@ -421,7 +420,7 @@ export const inviteAccept = async (
|
|
|
421
420
|
email: user.email,
|
|
422
421
|
}
|
|
423
422
|
} catch (err: any) {
|
|
424
|
-
if (err.code ===
|
|
423
|
+
if (err.code === ErrorCode.USAGE_LIMIT_EXCEEDED) {
|
|
425
424
|
// explicitly re-throw limit exceeded errors
|
|
426
425
|
ctx.throw(400, err)
|
|
427
426
|
}
|