@budibase/worker 2.7.25-alpha.0 → 2.7.25-alpha.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.7.25-alpha.
|
|
4
|
+
"version": "2.7.25-alpha.10",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -38,15 +38,16 @@
|
|
|
38
38
|
"author": "Budibase",
|
|
39
39
|
"license": "GPL-3.0",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@budibase/backend-core": "2.7.25-alpha.
|
|
42
|
-
"@budibase/pro": "2.7.25-alpha.
|
|
43
|
-
"@budibase/string-templates": "2.7.25-alpha.
|
|
44
|
-
"@budibase/types": "2.7.25-alpha.
|
|
41
|
+
"@budibase/backend-core": "2.7.25-alpha.10",
|
|
42
|
+
"@budibase/pro": "2.7.25-alpha.10",
|
|
43
|
+
"@budibase/string-templates": "2.7.25-alpha.10",
|
|
44
|
+
"@budibase/types": "2.7.25-alpha.10",
|
|
45
45
|
"@koa/router": "8.0.8",
|
|
46
46
|
"@sentry/node": "6.17.7",
|
|
47
47
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
48
48
|
"@types/global-agent": "2.1.1",
|
|
49
49
|
"aws-sdk": "2.1030.0",
|
|
50
|
+
"bcrypt": "5.1.0",
|
|
50
51
|
"bcryptjs": "2.4.3",
|
|
51
52
|
"dd-trace": "3.13.2",
|
|
52
53
|
"dotenv": "8.6.0",
|
|
@@ -104,5 +105,5 @@
|
|
|
104
105
|
"typescript": "4.7.3",
|
|
105
106
|
"update-dotenv": "1.1.1"
|
|
106
107
|
},
|
|
107
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "ca9c875e0a2e48b59a0aa95e711489e3bb33ed28"
|
|
108
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
|
|
41
|
+
const currentUserId = ctx.user?._id
|
|
42
42
|
const requestUser = ctx.request.body
|
|
43
43
|
|
|
44
44
|
const user = await userSdk.save(requestUser, { currentUserId })
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ctx } from "@budibase/types"
|
|
2
2
|
import env from "../../../environment"
|
|
3
3
|
|
|
4
|
-
export const fetch = async (ctx:
|
|
4
|
+
export const fetch = async (ctx: Ctx) => {
|
|
5
5
|
ctx.body = {
|
|
6
6
|
multiTenancy: !!env.MULTI_TENANCY,
|
|
7
|
+
offlineMode: !!env.OFFLINE_MODE,
|
|
7
8
|
cloud: !env.SELF_HOSTED,
|
|
8
9
|
accountPortalUrl: env.ACCOUNT_PORTAL_URL,
|
|
9
10
|
disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL,
|
package/src/environment.ts
CHANGED
|
@@ -61,6 +61,7 @@ const environment = {
|
|
|
61
61
|
CHECKLIST_CACHE_TTL: parseIntSafe(process.env.CHECKLIST_CACHE_TTL) || 3600,
|
|
62
62
|
SESSION_UPDATE_PERIOD: process.env.SESSION_UPDATE_PERIOD,
|
|
63
63
|
ENCRYPTED_TEST_PUBLIC_API_KEY: process.env.ENCRYPTED_TEST_PUBLIC_API_KEY,
|
|
64
|
+
OFFLINE_MODE: process.env.OFFLINE_MODE,
|
|
64
65
|
/**
|
|
65
66
|
* Mock the email service in use - links to ethereal hosted emails are logged instead.
|
|
66
67
|
*/
|