We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c252ed0 commit 331e780Copy full SHA for 331e780
src/index.js
@@ -5,7 +5,7 @@ const commands = require('redis-commands').list;
5
const objectDecorator = require('./object-decorator');
6
7
const AsyncRedis = function (...args) {
8
- const client = redis.createClient(args);
+ const client = Array.isArray(args) ? redis.createClient(...args) : redis.createClient(args);
9
return AsyncRedis.decorate(client);
10
};
11
0 commit comments