Fixing an issue with detecting fully qualified Redis URL despite not in use.

This commit is contained in:
mike12345567 2022-03-14 16:50:01 +00:00
parent e3fac51023
commit d55a385072
2 changed files with 1 additions and 4 deletions

View File

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

View File

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