1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

fix FT.SEARCH RETURN [] (#2421)

* ref #2419 - fix FT.SEARCH RETURN []

* fix transformReply

* fix PROFILE SEARCH as well

* fix PROFILE SEARCH preserve

* move preserve login to `pushSearchOptions`

* attach preserve only if true

* fix RETURN: [] test
This commit is contained in:
Leibale Eidelman
2023-02-24 17:33:33 -05:00
committed by GitHub
parent 0f28dad2a2
commit 26e057ebf9
4 changed files with 15 additions and 8 deletions

View File

@@ -506,6 +506,10 @@ export function pushSearchOptions(
args.push('DIALECT', options.DIALECT.toString());
}
if (options?.RETURN?.length === 0) {
args.preserve = true;
}
return args;
}