From 9accd426574ed3ea5d2d0dc54fbf2625738068fb Mon Sep 17 00:00:00 2001 From: olagrasli Date: Wed, 24 Jan 2024 22:59:30 +0100 Subject: [PATCH] Added support for WITHDIST option in pushGeoRadiusArguments --- packages/client/lib/commands/generic-transformers.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/client/lib/commands/generic-transformers.ts b/packages/client/lib/commands/generic-transformers.ts index 4cf610a036e..9b3fa536dde 100644 --- a/packages/client/lib/commands/generic-transformers.ts +++ b/packages/client/lib/commands/generic-transformers.ts @@ -321,6 +321,10 @@ export function pushGeoRadiusArguments( args.push(options.SORT); } + if (options?.WITHDIST) { + args.push(options.WITHDIST); + } + pushGeoCountArgument(args, options?.COUNT); return args;