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

fix DECRBY

This commit is contained in:
dovi
2023-05-03 14:50:33 -04:00
parent e4b8370c03
commit 642c823d1b
2 changed files with 17 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ import { RedisArgument, NumberReply, Command } from '../RESP/types';
export default {
FIRST_KEY_INDEX: 1,
transformArguments(key: RedisArgument, decrement: number) {
return ['DECR', key, decrement.toString()];
return ['DECRBY', key, decrement.toString()];
},
transformReply: undefined as unknown as () => NumberReply
} as const satisfies Command;