1
0
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:
Leibale
2024-02-12 18:38:09 -05:00
parent 77ecdf2721
commit 65eb69a787

View File

@@ -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);