Skip to content

Commit e02adc7

Browse files
authored
Release v1.1.4 - Merge pull request #9 from moaxaca/develop
2 parents c252ed0 + 1ee6e71 commit e02adc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": false,
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"name": "async-redis",
55
"keywords": [
66
"redis",

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const redis = require('redis');
44
const commands = require('redis-commands').list;
55
const objectDecorator = require('./object-decorator');
66

7-
const AsyncRedis = function (...args) {
8-
const client = redis.createClient(args);
7+
const AsyncRedis = function (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)