Skip to content

Commit

Permalink
check null port
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromtcosta committed Apr 19, 2023
1 parent 4c6c29f commit 3d72d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo4j/pool/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const getPayload = (cert: any) => {
ipv6: r.ipv6,
dnsName: (r.dnsName) ? r.dnsName.toString() : null,
dnsSrvName: (r.dns_srv_name) ? r.dns_srv_name.data.toString() : null,
port: r.port.toString(),
port: (r.port) ? r.port.toString() : null,
})),
poolMetadata: {
url: cert.url,
Expand Down

0 comments on commit 3d72d8b

Please sign in to comment.