Skip to content

Commit

Permalink
fix(api): fix init cached groups
Browse files Browse the repository at this point in the history
  • Loading branch information
vplasencia committed Dec 6, 2023
1 parent 16c0b89 commit 06db30b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/api/src/app/groups/groups.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,16 @@ export class GroupsService {

/* istanbul ignore next */
for (const group of groups) {
const members = []

for (const member of group.members) {
members.push(BigInt(member.id))
}

const cachedGroup = new CachedGroup(
group.id,
group.treeDepth,
group.members.map((m) => m.id)
members
)

this.cachedGroups.set(group.id, cachedGroup)
Expand Down

0 comments on commit 06db30b

Please sign in to comment.