Skip to content

Commit 95b17a1

Browse files
authored
Merge pull request #1332 from gonenduk/master
Simpler bluebird promisifyAll usage
2 parents fe1e525 + 59db10d commit 95b17a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ You can also use node_redis with promises by promisifying node_redis with
8686

8787
```js
8888
const redis = require('redis');
89-
bluebird.promisifyAll(redis.RedisClient.prototype);
90-
bluebird.promisifyAll(redis.Multi.prototype);
89+
bluebird.promisifyAll(redis);
9190
```
9291

9392
It'll add a *Async* to all node_redis functions (e.g. return client.getAsync().then())

0 commit comments

Comments
 (0)