Skip to content

Commit

Permalink
fix(WEB-2070): WEB-2070 added comments for db node change
Browse files Browse the repository at this point in the history
  • Loading branch information
sairam459 committed Apr 30, 2024
1 parent 1c9ba8d commit 2954ceb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/whisp/whisp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export class WhispService {

async findTagsByWhispId(whispId: string): Promise<TagInputType[]> {
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;
Expand Down

0 comments on commit 2954ceb

Please sign in to comment.