From c8743b5cf93e474135a8321745075d9b3a4d1743 Mon Sep 17 00:00:00 2001 From: Behzad Rabiei <53224485+Behzad-rabiei@users.noreply.github.com> Date: Fri, 9 Aug 2024 21:37:33 +0400 Subject: [PATCH] fix: fixing the bug --- src/controllers/memberActivity.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/memberActivity.controller.ts b/src/controllers/memberActivity.controller.ts index 4391f0c..648dbc1 100644 --- a/src/controllers/memberActivity.controller.ts +++ b/src/controllers/memberActivity.controller.ts @@ -70,19 +70,19 @@ const membersInteractionsNetworkGraph = catchAsync(async function (req: IAuthAnd const guildConnection = await DatabaseManager.getInstance().getGuildDb(req.platform?.metadata?.id); const networkGraphData = await memberActivityService.getMembersInteractionsNetworkGraph( - req.platform?.metadata?.id, + req.platform.id, guildConnection, ); res.send(networkGraphData); }); const decentralisationScore = catchAsync(async function (req: IAuthAndPlatform, res: Response) { - const decentralizationScoreData = await memberActivityService.getDecentralisationScore(req.platform?.metadata?.id); + const decentralizationScoreData = await memberActivityService.getDecentralisationScore(req.platform.id); res.send(decentralizationScoreData); }); const fragmentationScore = catchAsync(async function (req: IAuthAndPlatform, res: Response) { - const fragmentationScoreData = await memberActivityService.getFragmentationScore(req.platform?.metadata?.id); + const fragmentationScoreData = await memberActivityService.getFragmentationScore(req.platform.id); res.send(fragmentationScoreData); });