Skip to content

Commit d8e9da0

Browse files
authored
support for buffers in redisearch params (#2073)
1 parent 0f65690 commit d8e9da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/search/lib/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export function pushParamsArgs(
365365
const enrties = Object.entries(params);
366366
args.push('PARAMS', (enrties.length * 2).toString());
367367
for (const [key, value] of enrties) {
368-
args.push(key, value.toString());
368+
args.push(key, typeof value === 'number' ? value.toString() : value);
369369
}
370370
}
371371

0 commit comments

Comments
 (0)