Skip to content

Commit 59db10d

Browse files
committed
Simpler promisifyAll example
1 parent 673b177 commit 59db10d

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)