Skip to content

Commit

Permalink
Merge pull request #835 from Sanofi-IADC/feature/WEB-2070-tags
Browse files Browse the repository at this point in the history
fix(WEB-2070): WEB-2070 added comments for db node change
  • Loading branch information
sairam459 committed May 21, 2024
2 parents 41d7bae + 6a01ecc commit 85d16ad
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 85d16ad

Please sign in to comment.