@budibase/server 2.6.19-alpha.44 → 2.6.19-alpha.46

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/dist/index.js CHANGED
@@ -2733,7 +2733,7 @@ function connectionError(selectDb, timeout2, err) {
2733
2733
  }, RETRY_PERIOD_MS);
2734
2734
  }
2735
2735
  function init2(selectDb = DEFAULT_SELECT_DB) {
2736
- const RedisCore = environment_default.MOCK_REDIS ? MockRedis : import_ioredis.default;
2736
+ const RedisCore = environment_default.MOCK_REDIS && MockRedis ? MockRedis : import_ioredis.default;
2737
2737
  let timeout2;
2738
2738
  CLOSED = false;
2739
2739
  let client3 = pickClient(selectDb);
@@ -2832,7 +2832,9 @@ var init_redis = __esm({
2832
2832
  import_ioredis = __toESM(require("ioredis"));
2833
2833
  init_utils2();
2834
2834
  init_timers2();
2835
- MockRedis = require("ioredis-mock");
2835
+ if (environment_default.MOCK_REDIS) {
2836
+ MockRedis = require("ioredis-mock");
2837
+ }
2836
2838
  RETRY_PERIOD_MS = 2e3;
2837
2839
  STARTUP_TIMEOUT_MS = 5e3;
2838
2840
  CLUSTERED = environment_default.REDIS_CLUSTERED;