From 78b4552d7f19dee80afb9c154dde1599bbfc5425 Mon Sep 17 00:00:00 2001 From: Mohammad Twin Date: Fri, 29 Mar 2024 17:49:37 +0400 Subject: [PATCH] fix: fixed the network graph error --- src/services/memberActivity.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/memberActivity.service.ts b/src/services/memberActivity.service.ts index 02b02625..9f54e9d9 100644 --- a/src/services/memberActivity.service.ts +++ b/src/services/memberActivity.service.ts @@ -1011,7 +1011,7 @@ async function getMembersInteractionsNetworkGraph( }); // usersInfo - const usersInfo = await guildConnection.models.GuildMember.find({ discordIds: { $in: usersInNetworkGraph } }); + const usersInfo = await guildConnection.models.GuildMember.find({ discordId: { $in: usersInNetworkGraph } }); const rolesInNetworkGraph = usersInfo.flatMap((user) => user.roles); const roles = await roleService.getRoles(guildConnection, { roleId: { $in: rolesInNetworkGraph } });