Merge pull request #12403 from Budibase/fix/account-portal-redis-connection
Assume Redis default port number
This commit is contained in:
commit
a960af0b69
|
@ -75,10 +75,12 @@ export function getRedisConnectionDetails() {
|
||||||
}
|
}
|
||||||
const [host, port] = url.split(":")
|
const [host, port] = url.split(":")
|
||||||
|
|
||||||
|
const portNumber = parseInt(port)
|
||||||
return {
|
return {
|
||||||
host,
|
host,
|
||||||
password,
|
password,
|
||||||
port: parseInt(port),
|
// assume default port for redis if invalid found
|
||||||
|
port: isNaN(portNumber) ? 6379 : portNumber,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue