@budibase/worker 1.0.167 → 1.0.168
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": "1.0.
|
|
4
|
+
"version": "1.0.168",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"author": "Budibase",
|
|
32
32
|
"license": "GPL-3.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@budibase/backend-core": "^1.0.
|
|
35
|
-
"@budibase/pro": "1.0.
|
|
36
|
-
"@budibase/string-templates": "^1.0.
|
|
34
|
+
"@budibase/backend-core": "^1.0.168",
|
|
35
|
+
"@budibase/pro": "1.0.167",
|
|
36
|
+
"@budibase/string-templates": "^1.0.168",
|
|
37
37
|
"@koa/router": "^8.0.0",
|
|
38
38
|
"@sentry/node": "6.17.7",
|
|
39
39
|
"@techpass/passport-openidconnect": "^0.3.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"./scripts/jestSetup.js"
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "7e71bec61d8581f453d2259a2189911c2ea42d41"
|
|
93
93
|
}
|
|
@@ -271,13 +271,14 @@ exports.configChecklist = async function (ctx) {
|
|
|
271
271
|
const oidcConfig = await getScopedFullConfig(db, {
|
|
272
272
|
type: Configs.OIDC,
|
|
273
273
|
})
|
|
274
|
+
|
|
274
275
|
// They have set up an global user
|
|
275
276
|
const users = await db.allDocs(
|
|
276
277
|
getGlobalUserParams(null, {
|
|
277
278
|
include_docs: true,
|
|
279
|
+
limit: 1,
|
|
278
280
|
})
|
|
279
281
|
)
|
|
280
|
-
const adminUser = users.rows.some(row => row.doc.admin)
|
|
281
282
|
|
|
282
283
|
ctx.body = {
|
|
283
284
|
apps: {
|
|
@@ -291,7 +292,7 @@ exports.configChecklist = async function (ctx) {
|
|
|
291
292
|
link: "/builder/portal/manage/email",
|
|
292
293
|
},
|
|
293
294
|
adminUser: {
|
|
294
|
-
checked:
|
|
295
|
+
checked: users && users.rows.length >= 1,
|
|
295
296
|
label: "Create your first user",
|
|
296
297
|
link: "/builder/portal/manage/users",
|
|
297
298
|
},
|
package/src/environment.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const { join } = require("path")
|
|
2
|
+
|
|
1
3
|
function isDev() {
|
|
2
4
|
return process.env.NODE_ENV !== "production"
|
|
3
5
|
}
|
|
@@ -12,7 +14,9 @@ function isTest() {
|
|
|
12
14
|
|
|
13
15
|
let LOADED = false
|
|
14
16
|
if (!LOADED && isDev() && !isTest()) {
|
|
15
|
-
require("dotenv").config(
|
|
17
|
+
require("dotenv").config({
|
|
18
|
+
path: join(__dirname, "..", ".env"),
|
|
19
|
+
})
|
|
16
20
|
LOADED = true
|
|
17
21
|
}
|
|
18
22
|
|