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.
2 parents c252ed0 + 843ad7b commit f058365Copy full SHA for f058365
src/index.js
@@ -4,8 +4,8 @@ const redis = require('redis');
4
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 AsyncRedis = function (args) {
+ const client = Array.isArray(args) ? redis.createClient(...args) : redis.createClient(args);
9
return AsyncRedis.decorate(client);
10
};
11
0 commit comments