Skip to content

Commit

Permalink
Release v1.1.4 - Merge pull request #9 from moaxaca/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
moaxaca authored Apr 5, 2018
2 parents c252ed0 + 1ee6e71 commit e02adc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": false,
"version": "1.1.3",
"version": "1.1.4",
"name": "async-redis",
"keywords": [
"redis",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const redis = require('redis');
const commands = require('redis-commands').list;
const objectDecorator = require('./object-decorator');

const AsyncRedis = function (...args) {
const client = redis.createClient(args);
const AsyncRedis = function (args) {
const client = Array.isArray(args) ? redis.createClient(...args) : redis.createClient(args);
return AsyncRedis.decorate(client);
};

Expand Down

0 comments on commit e02adc7

Please sign in to comment.