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, SelectableDatabase,
} from "./utils" } from "./utils"
import * as timers from "../timers" import * as timers from "../timers"
import environment from "../environment"
const RETRY_PERIOD_MS = 2000 const RETRY_PERIOD_MS = 2000
const STARTUP_TIMEOUT_MS = 5000 const STARTUP_TIMEOUT_MS = 5000
const CLUSTERED = environment.REDIS_CLUSTERED const CLUSTERED = env.REDIS_CLUSTERED
const DEFAULT_SELECT_DB = SelectableDatabase.DEFAULT const DEFAULT_SELECT_DB = SelectableDatabase.DEFAULT
// for testing just generate the client once // for testing just generate the client once

View File

@ -47,6 +47,7 @@ if (!env.isTest()) {
if (!env.REDIS_CLUSTERED) { if (!env.REDIS_CLUSTERED) {
// Can't set direct redis db in clustered env // Can't set direct redis db in clustered env
// @ts-ignore
options.database = 1 options.database = 1
} }
} }