From 2954ceb4cd9e173ecccc055917a4f91a4059e3ff Mon Sep 17 00:00:00 2001 From: Sairam Charan Date: Tue, 30 Apr 2024 11:52:25 +0530 Subject: [PATCH] fix(WEB-2070): WEB-2070 added comments for db node change --- src/whisp/whisp.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/whisp/whisp.service.ts b/src/whisp/whisp.service.ts index fe9ce9fbc..ff358269f 100644 --- a/src/whisp/whisp.service.ts +++ b/src/whisp/whisp.service.ts @@ -128,6 +128,7 @@ export class WhispService { async findTagsByWhispId(whispId: string): Promise { const query = this.whispModel.findById(whispId).populate('tags'); + // To avoid using secondary node which is set by default to overcome data inconsistencies query.read('primaryPreferred'); const whisps = await query.exec(); return whisps.tags;