From d8e9da0f8e1b73e3f5af7b7f035b10904fc8255f Mon Sep 17 00:00:00 2001 From: Leibale Eidelman Date: Wed, 6 Apr 2022 12:33:50 +0300 Subject: [PATCH] support for buffers in redisearch params (#2073) --- packages/search/lib/commands/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/search/lib/commands/index.ts b/packages/search/lib/commands/index.ts index a210919122..03ac0fe19f 100644 --- a/packages/search/lib/commands/index.ts +++ b/packages/search/lib/commands/index.ts @@ -365,7 +365,7 @@ export function pushParamsArgs( const enrties = Object.entries(params); args.push('PARAMS', (enrties.length * 2).toString()); for (const [key, value] of enrties) { - args.push(key, value.toString()); + args.push(key, typeof value === 'number' ? value.toString() : value); } }