From 88099a0442ed9951f09b550fd2c7cacf949815ec Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Fri, 18 Aug 2023 14:39:18 +0330 Subject: [PATCH] fix: exclude current podcast episode from related episodes query --- src/services/unbody/unbody.service.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/services/unbody/unbody.service.ts b/src/services/unbody/unbody.service.ts index 8141071..58ac27b 100644 --- a/src/services/unbody/unbody.service.ts +++ b/src/services/unbody/unbody.service.ts @@ -499,6 +499,15 @@ export class UnbodyService { } as GetObjectsGoogleDocWhereInpObj, ] : []), + ...(nearObject + ? [ + { + path: ['id'], + operator: 'NotEqual', + valueString: nearObject, + } as GetObjectsGoogleDocWhereInpObj, + ] + : []), ...(filter ? [filter] : []), ], },