You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
fix legacy client command functions - do not return "empty" promise
This commit is contained in:
@@ -57,7 +57,7 @@ export class RedisLegacyClient {
|
|||||||
|
|
||||||
static #createCommand(name: string, command: Command, resp: RespVersions) {
|
static #createCommand(name: string, command: Command, resp: RespVersions) {
|
||||||
const transformReply = RedisLegacyClient.getTransformReply(command, resp);
|
const transformReply = RedisLegacyClient.getTransformReply(command, resp);
|
||||||
return async function (this: RedisLegacyClient, ...args: LegacyCommandArguments) {
|
return function (this: RedisLegacyClient, ...args: LegacyCommandArguments) {
|
||||||
const redisArgs = [name],
|
const redisArgs = [name],
|
||||||
callback = RedisLegacyClient.#transformArguments(redisArgs, args),
|
callback = RedisLegacyClient.#transformArguments(redisArgs, args),
|
||||||
promise = this.#client.sendCommand(redisArgs);
|
promise = this.#client.sendCommand(redisArgs);
|
||||||
|
Reference in New Issue
Block a user