Skip to content

Commit a0b6ffe

Browse files
committed
fix ARRPOP
1 parent fc73cb8 commit a0b6ffe

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/json/lib/commands/ARRPOP.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ export function transformArguments(key: string, path?: string, index?: number):
1414
return args;
1515
}
1616

17-
export { transformRedisJsonNullArrayReply as transformReply } from '.';
17+
export { transformRedisJsonNullArrayNullReply as transformReply } from '.';

packages/json/lib/commands/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ export function transformRedisJsonNullReply(json: string | null): RedisJSON | nu
8484
return transformRedisJsonReply(json);
8585
}
8686

87-
88-
export function transformRedisJsonNullArrayReply(jsons: Array<string | null>): Array<RedisJSON | null> {
87+
export function transformRedisJsonNullArrayNullReply(jsons: Array<string | null> | null): Array<RedisJSON | null> | null {
88+
if (jsons === null) return null;
89+
8990
return jsons.map(transformRedisJsonNullReply);
9091
}
9192

0 commit comments

Comments
 (0)