Skip to content

Commit b13f851

Browse files
committed
make tls always boolean
1 parent fc07dd6 commit b13f851

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/redis-adapter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const _createClientBase = (clientName) => {
104104
socket: {
105105
host,
106106
port,
107-
...(tls !== undefined && { tls }),
107+
...(tls !== undefined && { tls: !!tls }),
108108
},
109109
};
110110
if (isCluster) {

test/redis-adapter.test.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ describe("redis-adapter test", () => {
111111
"socket": {
112112
"host": "my-domain.com",
113113
"port": "1234",
114-
"tls": {
115-
"tlsOption": "tlsOption",
116-
},
114+
"tls": true,
117115
},
118116
},
119117
]

0 commit comments

Comments
 (0)