1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

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