Skip to content

Commit

Permalink
Member sync fixes (#2587)
Browse files Browse the repository at this point in the history
  • Loading branch information
epipav authored and sausage-todd committed Aug 26, 2024
1 parent a0308bb commit ba44eea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion services/apps/search_sync_worker/src/queue/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export class WorkerQueueReceiver extends SqsPrioritizedQueueReciever {
case SearchSyncWorkerQueueMessageType.SYNC_MEMBER:
if (data.memberId) {
// await this.memberBatchProcessor.addToBatch(data.memberId)
await this.initMemberService().syncMembers(data.memberId)
await this.initMemberService().syncMembers(data.memberId, {
withAggs: data.withAggs ? data.withAggs : true,
})
}

break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export class MemberSyncService {

public async syncMembers(
memberId: string,
opts: { withAggs?: boolean } = {},
opts: { withAggs?: boolean } = { withAggs: true },
): Promise<IMemberSyncResult> {
const qx = repoQx(this.memberRepo)

Expand Down

0 comments on commit ba44eea

Please sign in to comment.