1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

support for buffers in redisearch params (#2073)

This commit is contained in:
Leibale Eidelman
2022-04-06 12:33:50 +03:00
committed by GitHub
parent 0f65690e85
commit d8e9da0f8e

View File

@@ -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);
}
}