From 65eb69a787ad75204f1d18806cd1c55423a277f1 Mon Sep 17 00:00:00 2001 From: Leibale Date: Mon, 12 Feb 2024 18:38:09 -0500 Subject: [PATCH] fix legacy client command functions - do not return "empty" promise --- packages/client/lib/client/legacy-mode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/lib/client/legacy-mode.ts b/packages/client/lib/client/legacy-mode.ts index b30ebc68bc..03e7cf4efe 100644 --- a/packages/client/lib/client/legacy-mode.ts +++ b/packages/client/lib/client/legacy-mode.ts @@ -57,7 +57,7 @@ export class RedisLegacyClient { static #createCommand(name: string, command: Command, resp: RespVersions) { const transformReply = RedisLegacyClient.getTransformReply(command, resp); - return async function (this: RedisLegacyClient, ...args: LegacyCommandArguments) { + return function (this: RedisLegacyClient, ...args: LegacyCommandArguments) { const redisArgs = [name], callback = RedisLegacyClient.#transformArguments(redisArgs, args), promise = this.#client.sendCommand(redisArgs);