You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
WIP
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { RedisArgument, ArrayReply, NullReply, BlobStringReply, DoubleReply, Command } from '../RESP/types';
|
||||
import { pushVariadicArguments, RedisVariadicArgument } from './generic-transformers';
|
||||
import { pushVariadicArguments, RedisVariadicArgument, transformNullableDoubleReply } from './generic-transformers';
|
||||
|
||||
export default {
|
||||
FIRST_KEY_INDEX: 1,
|
||||
@@ -12,7 +12,7 @@ export default {
|
||||
},
|
||||
transformReply: {
|
||||
2: (reply: ArrayReply<NullReply | BlobStringReply>) => {
|
||||
return reply.map(score => score === null ? null : Number(score));
|
||||
return reply.map(transformNullableDoubleReply[2]);
|
||||
},
|
||||
3: undefined as unknown as () => ArrayReply<NullReply | DoubleReply>
|
||||
}
|
||||
|
Reference in New Issue
Block a user