diff --git a/src/Gameboard.Api/Features/Reports/Queries/EnrollmentReport/EnrollmentReportService.cs b/src/Gameboard.Api/Features/Reports/Queries/EnrollmentReport/EnrollmentReportService.cs index 32526778..836bf23e 100644 --- a/src/Gameboard.Api/Features/Reports/Queries/EnrollmentReport/EnrollmentReportService.cs +++ b/src/Gameboard.Api/Features/Reports/Queries/EnrollmentReport/EnrollmentReportService.cs @@ -217,9 +217,10 @@ public async Task GetRawResults(EnrollmentReportPara SponsorId = r.Player.Sponsor.Id, UserId = r.User.Id }) + .DistinctBy(sponsorUser => new { sponsorUser.SponsorId, sponsorUser.UserId }) .GroupBy(r => r.SponsorId) .OrderByDescending(g => g.Count()) - .ToDictionary(g => g.Key, g => g.Count()); + .ToDictionary(g => g.Key, g => g.Distinct().Count()); EnrollmentReportStatSummarySponsorPlayerCount sponsorWithMostPlayers = null; diff --git a/src/Gameboard.Api/Features/Reports/ReportsService.cs b/src/Gameboard.Api/Features/Reports/ReportsService.cs index f25c1567..3dcdfde6 100644 --- a/src/Gameboard.Api/Features/Reports/ReportsService.cs +++ b/src/Gameboard.Api/Features/Reports/ReportsService.cs @@ -69,7 +69,7 @@ public Task> List() { Name = "Enrollment", Key = ReportKey.Enrollment, - Description = "View a summary of player enrollment - who enrolled when, which sponsors do they a represent, and how many of them actually played challenges.", + Description = "View a summary of player enrollment - who enrolled when, which sponsors do they represent, and how many of them actually played challenges.", ExampleFields = new string[] { "Player Info",