Skip to content

Commit

Permalink
Merge pull request #12403 from Budibase/fix/account-portal-redis-conn…
Browse files Browse the repository at this point in the history
…ection

Assume Redis default port number
  • Loading branch information
mike12345567 authored Nov 20, 2023
2 parents 7e03709 + 8fdf378 commit a960af0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/backend-core/src/redis/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit a960af0

Please sign in to comment.