Skip to content

Commit 331e780

Browse files
committed
support to getting object options
1 parent c252ed0 commit 331e780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const commands = require('redis-commands').list;
55
const objectDecorator = require('./object-decorator');
66

77
const AsyncRedis = function (...args) {
8-
const client = redis.createClient(args);
8+
const client = Array.isArray(args) ? redis.createClient(...args) : redis.createClient(args);
99
return AsyncRedis.decorate(client);
1010
};
1111

0 commit comments

Comments
 (0)