diff --git a/apps/api/src/app/groups/groups.service.ts b/apps/api/src/app/groups/groups.service.ts index c36de814..3f3b26b0 100644 --- a/apps/api/src/app/groups/groups.service.ts +++ b/apps/api/src/app/groups/groups.service.ts @@ -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)