Skip to content

Commit

Permalink
refactor(api): update parameter of index of in cached groups
Browse files Browse the repository at this point in the history
  • Loading branch information
vplasencia committed Dec 4, 2023
1 parent ed58fc0 commit 5bbd2de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/api/src/app/groups/groups.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export class GroupsService {
await this.groupRepository.save(group)
}

cachedGroup.removeMember(cachedGroup.indexOf(BigInt(memberId)))
cachedGroup.removeMember(cachedGroup.indexOf(memberId))
Logger.log(
`GroupsService: member '${memberId}' has been removed from the group '${group.name}'`
)
Expand Down Expand Up @@ -581,7 +581,7 @@ export class GroupsService {
await this.groupRepository.save(group)
}

cachedGroup.removeMember(cachedGroup.indexOf(BigInt(memberId)))
cachedGroup.removeMember(cachedGroup.indexOf(memberId))
Logger.log(
`GroupsService: member '${memberId}' has been removed from the group '${group.name}'`
)
Expand Down Expand Up @@ -662,7 +662,7 @@ export class GroupsService {
}

const cachedGroup = this.cachedGroups.get(groupId)
const memberIndex = cachedGroup.indexOf(BigInt(member))
const memberIndex = cachedGroup.indexOf(member)

return cachedGroup.generateMerkleProof(memberIndex)
}
Expand Down

0 comments on commit 5bbd2de

Please sign in to comment.