@budibase/server 2.6.8-alpha.1 → 2.6.8

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.
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.gstatic.com" />
9
9
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
10
10
  rel="stylesheet" />
11
- <script type="module" crossorigin src="/builder/assets/index.31d4e3c2.js"></script>
11
+ <script type="module" crossorigin src="/builder/assets/index.821e6877.js"></script>
12
12
  <link rel="stylesheet" href="/builder/assets/index.a8e7f825.css">
13
13
  </head>
14
14
 
@@ -2,6 +2,7 @@
2
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
+ var _a, _b;
5
6
  Object.defineProperty(exports, "__esModule", { value: true });
6
7
  exports.shutdown = void 0;
7
8
  const applications_1 = __importDefault(require("./applications"));
@@ -45,11 +46,15 @@ if (!environment_1.default.isTest()) {
45
46
  host: REDIS_OPTS.host,
46
47
  port: REDIS_OPTS.port,
47
48
  },
48
- password: REDIS_OPTS.opts.password || REDIS_OPTS.opts.redisOptions.password,
49
49
  };
50
+ if (((_a = REDIS_OPTS.opts) === null || _a === void 0 ? void 0 : _a.password) || ((_b = REDIS_OPTS.opts.redisOptions) === null || _b === void 0 ? void 0 : _b.password)) {
51
+ // @ts-ignore
52
+ options.password =
53
+ REDIS_OPTS.opts.password || REDIS_OPTS.opts.redisOptions.password;
54
+ }
50
55
  if (!environment_1.default.REDIS_CLUSTERED) {
51
- // Can't set direct redis db in clustered env
52
56
  // @ts-ignore
57
+ // Can't set direct redis db in clustered env
53
58
  options.database = 1;
54
59
  }
55
60
  }