fix ts build
This commit is contained in:
parent
36397bb77d
commit
167dfd39d7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue