Skip to content

Commit

Permalink
commenting both identity extraction and unmerge activity/member count…
Browse files Browse the repository at this point in the history
…s for testing
  • Loading branch information
epipav committed Oct 1, 2024
1 parent 96b17da commit 02e1910
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions backend/src/services/memberService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,9 @@ export default class MemberService extends LoggerBase {
MemberField.MANUALLY_CHANGED_FIELDS,
])

this.options.log.info("[0] Getting member information (identities, tags, notes, tasks, affiliations)... ")
this.options.log.info(
'[0] Getting member information (identities, tags, notes, tasks, affiliations)... ',
)

const [memberOrganizations, identities, tags, notes, tasks, affiliations] = await Promise.all(
[
Expand All @@ -975,9 +977,7 @@ export default class MemberService extends LoggerBase {
],
)

this.options.log.info(
'[0] Done!',
)
this.options.log.info('[0] Done!')

const member = {
...memberById,
Expand Down Expand Up @@ -1171,17 +1171,19 @@ export default class MemberService extends LoggerBase {
)
member.memberOrganizations = unmergedRoles as IMemberRoleWithOrganization[]

const secondaryActivityCount = 0
const primaryActivityCount = 0
// activity count
const secondaryActivityCount = await getActivityCountOfMemberIdentities(
this.options.qdb,
member.id,
secondaryBackup.identities,
)
const primaryActivityCount = await getActivityCountOfMemberIdentities(
this.options.qdb,
member.id,
member.identities,
)
// const secondaryActivityCount = await getActivityCountOfMemberIdentities(
// this.options.qdb,
// member.id,
// secondaryBackup.identities,
// )
// const primaryActivityCount = await getActivityCountOfMemberIdentities(
// this.options.qdb,
// member.id,
// member.identities,
// )

return {
primary: {
Expand Down Expand Up @@ -1228,7 +1230,7 @@ export default class MemberService extends LoggerBase {
// member.id,
// secondaryIdentities,
// )
//
//
// const primaryActivityCount = await getActivityCountOfMemberIdentities(
// this.options.qdb,
// member.id,
Expand Down

0 comments on commit 02e1910

Please sign in to comment.