Merge pull request #12403 from Budibase/fix/account-portal-redis-connection

Assume Redis default port number
This commit is contained in:
Michael Drury 2023-11-20 15:42:42 +00:00 committed by GitHub
commit a960af0b69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -75,10 +75,12 @@ export function getRedisConnectionDetails() {
}
const [host, port] = url.split(":")
const portNumber = parseInt(port)
return {
host,
password,
port: parseInt(port),
// assume default port for redis if invalid found
port: isNaN(portNumber) ? 6379 : portNumber,
}
}