You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
support for buffers in redisearch params (#2073)
This commit is contained in:
@@ -365,7 +365,7 @@ export function pushParamsArgs(
|
|||||||
const enrties = Object.entries(params);
|
const enrties = Object.entries(params);
|
||||||
args.push('PARAMS', (enrties.length * 2).toString());
|
args.push('PARAMS', (enrties.length * 2).toString());
|
||||||
for (const [key, value] of enrties) {
|
for (const [key, value] of enrties) {
|
||||||
args.push(key, value.toString());
|
args.push(key, typeof value === 'number' ? value.toString() : value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user