@budibase/worker 2.29.16 → 2.29.18

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.29.16",
4
+ "version": "2.29.18",
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.29.16",
41
- "@budibase/pro": "2.29.16",
42
- "@budibase/string-templates": "2.29.16",
43
- "@budibase/types": "2.29.16",
40
+ "@budibase/backend-core": "2.29.18",
41
+ "@budibase/pro": "2.29.18",
42
+ "@budibase/string-templates": "2.29.18",
43
+ "@budibase/types": "2.29.18",
44
44
  "@koa/router": "8.0.8",
45
45
  "@techpass/passport-openidconnect": "0.3.3",
46
46
  "@types/global-agent": "2.1.1",
@@ -107,5 +107,5 @@
107
107
  }
108
108
  }
109
109
  },
110
- "gitHead": "a8ca596197724f9d91d065bb12d71418e1eebe3b"
110
+ "gitHead": "1099e5e1da42203e02529dcc65722d78fbc39c4c"
111
111
  }
@@ -1,6 +1,6 @@
1
1
  import { Ctx, MaintenanceType } from "@budibase/types"
2
2
  import env from "../../../environment"
3
- import { env as coreEnv } from "@budibase/backend-core"
3
+ import { env as coreEnv, db as dbCore } from "@budibase/backend-core"
4
4
  import nodeFetch from "node-fetch"
5
5
 
6
6
  let sqsAvailable: boolean
@@ -12,7 +12,12 @@ async function isSqsAvailable() {
12
12
  }
13
13
 
14
14
  try {
15
- await nodeFetch(coreEnv.COUCH_DB_SQL_URL, {
15
+ const couchInfo = dbCore.getCouchInfo()
16
+ if (!couchInfo.sqlUrl) {
17
+ sqsAvailable = false
18
+ return false
19
+ }
20
+ await nodeFetch(couchInfo.sqlUrl, {
16
21
  timeout: 1000,
17
22
  })
18
23
  sqsAvailable = true