You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore: add print helper again and refactor some code
Expose the RedisClient directly instead of only being a property
This commit is contained in:
@@ -145,14 +145,14 @@ class Multi {
|
||||
/**
|
||||
* Creates an instance of Multi.
|
||||
* @param {RedisClient} client
|
||||
* @param {string} type
|
||||
* @param {any[]} [args]
|
||||
* @param {string} [type]
|
||||
*
|
||||
* @memberof Multi
|
||||
*/
|
||||
constructor (client, type, args) {
|
||||
constructor (client, args, type) {
|
||||
this._client = client
|
||||
this._type = type
|
||||
this._type = typeof type === 'string' ? type : 'multi'
|
||||
this._queue = new Queue()
|
||||
// Either undefined or an array. Fail hard if it's not an array
|
||||
if (args) {
|
||||
|
Reference in New Issue
Block a user