@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.
- package/dist/automation.js +4 -2
- package/dist/automation.js.map +2 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +2 -2
- package/dist/query.js +4 -2
- package/dist/query.js.map +2 -2
- package/package.json +8 -8
package/dist/query.js
CHANGED
|
@@ -2698,7 +2698,7 @@ function connectionError(selectDb, timeout2, err) {
|
|
|
2698
2698
|
}, RETRY_PERIOD_MS);
|
|
2699
2699
|
}
|
|
2700
2700
|
function init2(selectDb = DEFAULT_SELECT_DB) {
|
|
2701
|
-
const RedisCore = environment_default2.MOCK_REDIS ? MockRedis : import_ioredis.default;
|
|
2701
|
+
const RedisCore = environment_default2.MOCK_REDIS && MockRedis ? MockRedis : import_ioredis.default;
|
|
2702
2702
|
let timeout2;
|
|
2703
2703
|
CLOSED = false;
|
|
2704
2704
|
let client3 = pickClient(selectDb);
|
|
@@ -2797,7 +2797,9 @@ var init_redis = __esm({
|
|
|
2797
2797
|
import_ioredis = __toESM(require("ioredis"));
|
|
2798
2798
|
init_utils2();
|
|
2799
2799
|
init_timers2();
|
|
2800
|
-
|
|
2800
|
+
if (environment_default2.MOCK_REDIS) {
|
|
2801
|
+
MockRedis = require("ioredis-mock");
|
|
2802
|
+
}
|
|
2801
2803
|
RETRY_PERIOD_MS = 2e3;
|
|
2802
2804
|
STARTUP_TIMEOUT_MS = 5e3;
|
|
2803
2805
|
CLUSTERED = environment_default2.REDIS_CLUSTERED;
|