Skip to content

Commit

Permalink
use queryMembersAdvanced in member findById if count is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
skwowet committed Oct 8, 2024
1 parent 55bbee1 commit 9be6542
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/database/repositories/memberRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1513,7 +1513,10 @@ class MemberRepository {
if (memberResponse.count === 0) {
// try it again without segment information (no aggregates)
// for members without activities
memberResponse = await MemberRepository.findAndCountAll(
memberResponse = await queryMembersAdvanced(
optionsQx(options),
options.redis,
options.currentTenant.id,
{
filter: { id: { eq: id } },
limit: 1,
Expand Down

0 comments on commit 9be6542

Please sign in to comment.