1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

add missing FIRST_KEY_INDEX (#2028)

This commit is contained in:
Leibale Eidelman
2022-03-08 17:26:13 -05:00
committed by GitHub
parent f79e14c8c3
commit c57da8b78b
9 changed files with 17 additions and 8 deletions

View File

@ -2,7 +2,6 @@ export const FIRST_KEY_INDEX = 1;
export const IS_READ_ONLY = true;
interface SortOptions {
BY?: string;
LIMIT?: {
@ -25,7 +24,7 @@ export function transformArguments(key: string, options?: SortOptions): Array<st
if (options?.LIMIT) {
args.push(
'LIMIT',
options.LIMIT.offset.toString(),
options.LIMIT.offset.toString(),
options.LIMIT.count.toString()
);
}