Skip to content

Commit ef29bde

Browse files
author
Simon Prickett
committed
Fixed to use REDIS_URL when connecting.
1 parent e2982b9 commit ef29bde

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sample-app/redisearch-node-rest/NodeSearchService.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ const indexNameComments = process.env.REDIS_INDEX_COMMENTS || 'idx:comments:movi
66

77
console.log(`Configuration Index: ${indexNameMovies} - redisUrl: ${redisUrl}`);
88

9-
const client = createClient(redisUrl);
9+
const client = createClient({
10+
url: redisUrl
11+
});
1012
await client.connect();
1113

1214
const SearchService = function () {

0 commit comments

Comments
 (0)