diff --git a/packages/backend-core/src/redis/redis.ts b/packages/backend-core/src/redis/redis.ts index ecc83167dd..2d54b51a9f 100644 --- a/packages/backend-core/src/redis/redis.ts +++ b/packages/backend-core/src/redis/redis.ts @@ -9,11 +9,10 @@ import { SelectableDatabase, } from "./utils" import * as timers from "../timers" -import environment from "../environment" const RETRY_PERIOD_MS = 2000 const STARTUP_TIMEOUT_MS = 5000 -const CLUSTERED = environment.REDIS_CLUSTERED +const CLUSTERED = env.REDIS_CLUSTERED const DEFAULT_SELECT_DB = SelectableDatabase.DEFAULT // for testing just generate the client once diff --git a/packages/server/src/api/routes/public/index.ts b/packages/server/src/api/routes/public/index.ts index 5f93732a06..107287348c 100644 --- a/packages/server/src/api/routes/public/index.ts +++ b/packages/server/src/api/routes/public/index.ts @@ -47,6 +47,7 @@ if (!env.isTest()) { if (!env.REDIS_CLUSTERED) { // Can't set direct redis db in clustered env + // @ts-ignore options.database = 1 } }