ioredis-mock icon indicating copy to clipboard operation
ioredis-mock copied to clipboard

Multi() command returns undefined in results array

Open giovanni-bertoncelli opened this issue 3 years ago • 0 comments

When using the multi() command the exec callback gets called with (err, results) as parameters. In this implementation the results are always null, instead they should be a matrix of the pipeline results.

Example:

        .multi()
        .setnx(redisKey, true)
        .expire(redisKey, 60)
        .exec(async (err, results) => {// results undefined!})

giovanni-bertoncelli avatar Sep 28 '20 14:09 giovanni-bertoncelli