diff --git a/api/src/Feature.ElectionRounds/Monitoring/Endpoint.cs b/api/src/Feature.ElectionRounds/Monitoring/Endpoint.cs index f9e6df736..559306ee1 100644 --- a/api/src/Feature.ElectionRounds/Monitoring/Endpoint.cs +++ b/api/src/Feature.ElectionRounds/Monitoring/Endpoint.cs @@ -8,7 +8,7 @@ public class Endpoint(VoteMonitorContext context) { public override void Configure() { - Get("/api/election-rounds:monitoring"); + Get("/api/election-rounds:monitoring", "api/users/me/election-rounds"); DontAutoTag(); Options(x => x.WithTags("election-rounds")); Summary(s => @@ -25,7 +25,7 @@ public override async Task> ExecuteAsync(Request req, CancellationTok var electionRounds = await context.MonitoringNgos .Include(x => x.ElectionRound) .ThenInclude(x => x.MonitoringNgoForCitizenReporting) - .Include(x=>x.ElectionRound.Country) + .Include(x => x.ElectionRound.Country) .Where(x => x.NgoId == req.NgoId) .OrderBy(x => x.ElectionRound.StartDate) .Select(x => new ElectionRoundModel diff --git a/api/src/Feature.Locations/Services/LocationParser.cs b/api/src/Feature.Locations/Services/LocationParser.cs index e3d6cb552..44ce98fcf 100644 --- a/api/src/Feature.Locations/Services/LocationParser.cs +++ b/api/src/Feature.Locations/Services/LocationParser.cs @@ -1,4 +1,5 @@ using Feature.Locations.Options; +using Sentry; namespace Feature.Locations.Services; @@ -88,4 +89,4 @@ private ValidationResult Validate(LocationImportModel location, int rowIndex) return _locationImportModelValidator.Validate(validationContext); } -} \ No newline at end of file +}