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

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.
@@ -2806,7 +2806,7 @@ function connectionError(selectDb, timeout2, err) {
2806
2806
  }, RETRY_PERIOD_MS);
2807
2807
  }
2808
2808
  function init2(selectDb = DEFAULT_SELECT_DB) {
2809
- const RedisCore = environment_default2.MOCK_REDIS ? MockRedis : import_ioredis.default;
2809
+ const RedisCore = environment_default2.MOCK_REDIS && MockRedis ? MockRedis : import_ioredis.default;
2810
2810
  let timeout2;
2811
2811
  CLOSED = false;
2812
2812
  let client3 = pickClient(selectDb);
@@ -2905,7 +2905,9 @@ var init_redis = __esm({
2905
2905
  import_ioredis = __toESM(require("ioredis"));
2906
2906
  init_utils2();
2907
2907
  init_timers2();
2908
- MockRedis = require("ioredis-mock");
2908
+ if (environment_default2.MOCK_REDIS) {
2909
+ MockRedis = require("ioredis-mock");
2910
+ }
2909
2911
  RETRY_PERIOD_MS = 2e3;
2910
2912
  STARTUP_TIMEOUT_MS = 5e3;
2911
2913
  CLUSTERED = environment_default2.REDIS_CLUSTERED;