Skip to content

Commit 5d9909f

Browse files
fix transform reply
1 parent 96fd750 commit 5d9909f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

redisinsight/api/src/modules/browser/constants/browser-tool-commands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export enum BrowserToolStringCommands {
2020

2121
export enum BrowserToolHashCommands {
2222
HSet = 'hset',
23+
HGetAll = 'hgetall',
24+
HGETALL = 'HGETALL',
2325
HGet = 'hget',
2426
HLen = 'hlen',
2527
HScan = 'hscan',

redisinsight/api/src/modules/redis/client/ioredis/ioredis.client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export abstract class IoredisClient extends RedisClient {
2020
client.addBuiltinCommand(BrowserToolHashCommands.HExpire);
2121
client.addBuiltinCommand(BrowserToolHashCommands.HTtl);
2222
client.addBuiltinCommand(BrowserToolHashCommands.HPersist);
23+
// fix not existing command in pipeline
24+
client.addBuiltinCommand(BrowserToolHashCommands.HGETALL);
25+
// should return array (same as original reply)
26+
Redis.Command.setReplyTransformer(BrowserToolHashCommands.HGetAll, (result) => result);
2327
}
2428

2529
static prepareCommandOptions(options: IRedisClientCommandOptions): any {

0 commit comments

Comments
 (0)