Skip to content

Commit 65eb69a

Browse files
committed
fix legacy client command functions - do not return "empty" promise
1 parent 77ecdf2 commit 65eb69a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/lib/client/legacy-mode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class RedisLegacyClient {
5757

5858
static #createCommand(name: string, command: Command, resp: RespVersions) {
5959
const transformReply = RedisLegacyClient.getTransformReply(command, resp);
60-
return async function (this: RedisLegacyClient, ...args: LegacyCommandArguments) {
60+
return function (this: RedisLegacyClient, ...args: LegacyCommandArguments) {
6161
const redisArgs = [name],
6262
callback = RedisLegacyClient.#transformArguments(redisArgs, args),
6363
promise = this.#client.sendCommand(redisArgs);

0 commit comments

Comments
 (0)