fix ts build

This commit is contained in:
Martin McKeaveney 2023-05-04 13:32:17 +01:00
parent 36397bb77d
commit 167dfd39d7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}
}