@budibase/worker 2.5.6-alpha.34 → 2.5.6-alpha.35
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.5.6-alpha.
|
|
4
|
+
"version": "2.5.6-alpha.35",
|
|
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.5.6-alpha.
|
|
41
|
-
"@budibase/pro": "2.5.6-alpha.
|
|
42
|
-
"@budibase/string-templates": "2.5.6-alpha.
|
|
43
|
-
"@budibase/types": "2.5.6-alpha.
|
|
40
|
+
"@budibase/backend-core": "2.5.6-alpha.35",
|
|
41
|
+
"@budibase/pro": "2.5.6-alpha.34",
|
|
42
|
+
"@budibase/string-templates": "2.5.6-alpha.35",
|
|
43
|
+
"@budibase/types": "2.5.6-alpha.35",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@sentry/node": "6.17.7",
|
|
46
46
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"typescript": "4.7.3",
|
|
103
103
|
"update-dotenv": "1.1.1"
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "5398e5699ef098e3c664cf41ddf993756ac114c2"
|
|
106
106
|
}
|
|
@@ -424,7 +424,9 @@ export const inviteAccept = async (
|
|
|
424
424
|
if (err.code === ErrorCode.USAGE_LIMIT_EXCEEDED) {
|
|
425
425
|
// explicitly re-throw limit exceeded errors
|
|
426
426
|
ctx.throw(400, err)
|
|
427
|
+
return
|
|
427
428
|
}
|
|
429
|
+
console.warn("Error inviting user", err)
|
|
428
430
|
ctx.throw(400, "Unable to create new user, invitation invalid.")
|
|
429
431
|
}
|
|
430
432
|
}
|
|
@@ -18,8 +18,17 @@ export const saveMetadata = async (
|
|
|
18
18
|
if (existing) {
|
|
19
19
|
metadata._rev = existing._rev
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
try {
|
|
22
|
+
const res = await db.put(metadata)
|
|
23
|
+
metadata._rev = res.rev
|
|
24
|
+
} catch (e: any) {
|
|
25
|
+
// account can be updated frequently
|
|
26
|
+
// ignore 409
|
|
27
|
+
if (e.status !== 409) {
|
|
28
|
+
throw e
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
23
32
|
return metadata
|
|
24
33
|
})
|
|
25
34
|
}
|