@budibase/worker 2.13.0 → 2.13.2

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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/src/index.ts +3 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.13.0",
4
+ "version": "2.13.2",
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.13.0",
41
- "@budibase/pro": "2.13.0",
42
- "@budibase/string-templates": "2.13.0",
43
- "@budibase/types": "2.13.0",
40
+ "@budibase/backend-core": "2.13.2",
41
+ "@budibase/pro": "2.13.2",
42
+ "@budibase/string-templates": "2.13.2",
43
+ "@budibase/types": "2.13.2",
44
44
  "@koa/router": "8.0.8",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
46
46
  "@types/global-agent": "2.1.1",
@@ -107,5 +107,5 @@
107
107
  }
108
108
  }
109
109
  },
110
- "gitHead": "5c49ba027895efffbf47344a1e14f5215782d968"
110
+ "gitHead": "06a7f67e1f9d52ae3e4cf981468d45d107e3c6de"
111
111
  }
package/src/index.ts CHANGED
@@ -31,10 +31,6 @@ import destroyable from "server-destroy"
31
31
  import { initPro } from "./initPro"
32
32
  import { handleScimBody } from "./middleware/handleScimBody"
33
33
 
34
- // configure events to use the pro audit log write
35
- // can't integrate directly into backend-core due to cyclic issues
36
- events.processors.init(proSdk.auditLogs.write)
37
-
38
34
  if (coreEnv.ENABLE_SSO_MAINTENANCE_MODE) {
39
35
  console.warn(
40
36
  "Warning: ENABLE_SSO_MAINTENANCE_MODE is set. It is recommended this flag is disabled if maintenance is not in progress"
@@ -93,6 +89,9 @@ export default server.listen(parseInt(env.PORT || "4002"), async () => {
93
89
  console.log(`Worker running on ${JSON.stringify(server.address())}`)
94
90
  await initPro()
95
91
  await redis.init()
92
+ // configure events to use the pro audit log write
93
+ // can't integrate directly into backend-core due to cyclic issues
94
+ await events.processors.init(proSdk.auditLogs.write)
96
95
  })
97
96
 
98
97
  process.on("uncaughtException", err => {