You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
ref #2565 - fix X[AUTO]CLAIM
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { RedisArgument, Command } from '../RESP/types';
|
||||
import { RedisVariadicArgument, pushVariadicArguments, transformStreamMessagesReply } from './generic-transformers';
|
||||
import { RedisArgument, ArrayReply, NullReply, UnwrapReply, Command } from '../RESP/types';
|
||||
import { RedisVariadicArgument, pushVariadicArguments, StreamMessageReply, transformStreamMessageNullReply } from './generic-transformers';
|
||||
|
||||
export interface XClaimOptions {
|
||||
IDLE?: number;
|
||||
@@ -50,5 +50,7 @@ export default {
|
||||
|
||||
return args;
|
||||
},
|
||||
transformReply: transformStreamMessagesReply
|
||||
transformReply(reply: UnwrapReply<ArrayReply<StreamMessageReply | NullReply>>) {
|
||||
return reply.map(transformStreamMessageNullReply);
|
||||
}
|
||||
} as const satisfies Command;
|
||||
|
Reference in New Issue
Block a user