Fixing an issue with detecting fully qualified Redis URL despite not in use.
This commit is contained in:
parent
d0c617fa5a
commit
8dc2c9d480
|
@ -40,7 +40,7 @@ exports.getRedisOptions = (clustered = false) => {
|
|||
let redisProtocolUrl
|
||||
|
||||
// fully qualified redis URL
|
||||
if (/rediss?/.test(REDIS_URL)) {
|
||||
if (/rediss?:\/\//.test(REDIS_URL)) {
|
||||
redisProtocolUrl = REDIS_URL
|
||||
}
|
||||
|
||||
|
|
|
@ -51,9 +51,6 @@ class QueryRunner {
|
|||
} else {
|
||||
sql = sql.replace(binding, variable)
|
||||
}
|
||||
// const indexOfBinding = sql.indexOf(binding)
|
||||
// const constantStr = `'${binding}'`
|
||||
// sql = sql.replace(sql.indexOf(constantStr) === indexOfBinding - 1 ? constantStr : binding, variable)
|
||||
}
|
||||
// replicate the knex structure
|
||||
fields.sql = sql
|
||||
|
|
Loading…
Reference in New Issue