You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
fix: client duplicate function now allows db param to be passed
This commit is contained in:
committed by
Ruben Bridgewater
parent
66d5a50467
commit
19c80c617c
@@ -95,7 +95,7 @@ RedisClient.prototype.duplicate = function (options, callback) {
|
||||
existing_options[elem] = options[elem];
|
||||
}
|
||||
var client = new RedisClient(existing_options);
|
||||
client.selected_db = this.selected_db;
|
||||
client.selected_db = options.db || this.selected_db;
|
||||
if (typeof callback === 'function') {
|
||||
var ready_listener = function () {
|
||||
callback(null, client);
|
||||
|
Reference in New Issue
Block a user