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

fix cluster extractFirstKey skip commandOptions() passed to args (#2439)

* cluster extractFirstKey skip commandOptions() passed to args

* cluster with commandOptions unit test

* improve performance

* fix type

* fix type

---------

Co-authored-by: Leibale Eidelman <me@leibale.com>
This commit is contained in:
Carl Hopf
2023-04-26 18:56:04 +02:00
committed by GitHub
parent c88dea6151
commit e1658ba6ef
3 changed files with 20 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ export function transformCommandArguments<T = ClientCommandOptions>(
command: RedisCommand,
args: Array<unknown>
): {
jsArgs: Array<unknown>;
args: RedisCommandArguments;
options: CommandOptions<T> | undefined;
} {
@@ -118,6 +119,7 @@ export function transformCommandArguments<T = ClientCommandOptions>(
}
return {
jsArgs: args,
args: command.transformArguments(...args),
options
};