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 331e780 commit 843ad7bCopy full SHA for 843ad7b
src/index.js
@@ -4,7 +4,7 @@ const redis = require('redis');
4
const commands = require('redis-commands').list;
5
const objectDecorator = require('./object-decorator');
6
7
-const AsyncRedis = function (...args) {
+const AsyncRedis = function (args) {
8
const client = Array.isArray(args) ? redis.createClient(...args) : redis.createClient(args);
9
return AsyncRedis.decorate(client);
10
};
0 commit comments