You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix some Z (sorted list) commands, increase commands test coverage
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { RedisCommandArguments } from '.';
|
||||
import { transformArgumentNumberInfinity } from './generic-transformers';
|
||||
import { transformArgumentStringNumberInfinity } from './generic-transformers';
|
||||
|
||||
export const FIRST_KEY_INDEX = 1;
|
||||
|
||||
@@ -21,8 +21,8 @@ export function transformArguments(
|
||||
const args = [
|
||||
'ZRANGEBYSCORE',
|
||||
key,
|
||||
typeof min === 'string' ? min : transformArgumentNumberInfinity(min),
|
||||
typeof max === 'string' ? max : transformArgumentNumberInfinity(max)
|
||||
transformArgumentStringNumberInfinity(min),
|
||||
transformArgumentStringNumberInfinity(max)
|
||||
];
|
||||
|
||||
if (options?.LIMIT) {
|
||||
|
Reference in New Issue
Block a user