@budibase/worker 2.8.12-alpha.1 → 2.8.12
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.8.12
|
|
4
|
+
"version": "2.8.12",
|
|
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.8.12
|
|
42
|
-
"@budibase/pro": "2.8.12
|
|
43
|
-
"@budibase/string-templates": "2.8.12
|
|
44
|
-
"@budibase/types": "2.8.12
|
|
41
|
+
"@budibase/backend-core": "2.8.12",
|
|
42
|
+
"@budibase/pro": "2.8.12",
|
|
43
|
+
"@budibase/string-templates": "2.8.12",
|
|
44
|
+
"@budibase/types": "2.8.12",
|
|
45
45
|
"@koa/router": "8.0.8",
|
|
46
46
|
"@sentry/node": "6.17.7",
|
|
47
47
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"typescript": "4.7.3",
|
|
105
105
|
"update-dotenv": "1.1.1"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "bbe4c851a84ec5400d6fc3e9d001132aa972cbb2"
|
|
108
108
|
}
|
package/src/api/routes/index.ts
CHANGED
|
@@ -16,9 +16,6 @@ import licenseRoutes from "./global/license"
|
|
|
16
16
|
import migrationRoutes from "./system/migrations"
|
|
17
17
|
import accountRoutes from "./system/accounts"
|
|
18
18
|
import restoreRoutes from "./system/restore"
|
|
19
|
-
import systemLogRoutes from "./system/logs"
|
|
20
|
-
|
|
21
|
-
import env from "../../environment"
|
|
22
19
|
|
|
23
20
|
export const routes: Router[] = [
|
|
24
21
|
configRoutes,
|
|
@@ -41,7 +38,3 @@ export const routes: Router[] = [
|
|
|
41
38
|
eventRoutes,
|
|
42
39
|
pro.scim,
|
|
43
40
|
]
|
|
44
|
-
|
|
45
|
-
if (env.SELF_HOSTED) {
|
|
46
|
-
routes.push(systemLogRoutes)
|
|
47
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UserCtx } from "@budibase/types"
|
|
2
|
-
import { installation, logging } from "@budibase/backend-core"
|
|
3
|
-
|
|
4
|
-
export async function getLogs(ctx: UserCtx) {
|
|
5
|
-
const logReadStream = logging.system.getLogReadStream()
|
|
6
|
-
|
|
7
|
-
const { installId } = await installation.getInstall()
|
|
8
|
-
|
|
9
|
-
const fileName = `${installId}-${Date.now()}.log`
|
|
10
|
-
|
|
11
|
-
ctx.set("content-disposition", `attachment; filename=${fileName}`)
|
|
12
|
-
ctx.body = logReadStream
|
|
13
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Router from "@koa/router"
|
|
2
|
-
import { middleware } from "@budibase/backend-core"
|
|
3
|
-
import * as controller from "../../controllers/system/logs"
|
|
4
|
-
|
|
5
|
-
const router: Router = new Router()
|
|
6
|
-
|
|
7
|
-
router.get("/api/system/logs", middleware.adminOnly, controller.getLogs)
|
|
8
|
-
|
|
9
|
-
export default router
|