From 287f5df79d116b20737deaf25049df14dbce90e6 Mon Sep 17 00:00:00 2001 From: Artur Sharapov <38008115+ArturSharapov@users.noreply.github.com> Date: Sat, 29 Jun 2024 14:28:16 +0300 Subject: [PATCH] fix: use proper xid types for xpending range (#436) --- redis.ts | 4 ++-- stream.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/redis.ts b/redis.ts index c83dd1a7..0a79b401 100644 --- a/redis.ts +++ b/redis.ts @@ -1922,8 +1922,8 @@ class RedisImpl implements Redis { consumer?: string, ) { const args = []; - args.push(startEndCount.start); - args.push(startEndCount.end); + args.push(xidstr(startEndCount.start)); + args.push(xidstr(startEndCount.end)); args.push(startEndCount.count); if (consumer) { diff --git a/stream.ts b/stream.ts index d0ae93f7..7676789b 100644 --- a/stream.ts +++ b/stream.ts @@ -137,8 +137,8 @@ export interface XPendingCount { * args must be specified if _any_ are specified. */ export interface StartEndCount { - start: number | "-"; - end: number | "+"; + start: XIdNeg; + end: XIdPos; count: number; }