Skip to content

Commit

Permalink
Merge pull request #374 from TogetherCrew/fix-platform-agnostic
Browse files Browse the repository at this point in the history
fix: fixing the bug
  • Loading branch information
Behzad-rabiei authored Aug 9, 2024
2 parents 417733c + c8743b5 commit 1547f86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controllers/memberActivity.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 1547f86

Please sign in to comment.