From ec936d7edd050063063d0e7d48d687ff455653e3 Mon Sep 17 00:00:00 2001 From: "ion.dormenco" Date: Mon, 14 Sep 2026 20:37:12 +0300 Subject: [PATCH] Fix build --- api/src/Feature.ElectionRounds/Monitoring/Endpoint.cs | 4 ++-- api/src/Feature.Locations/Services/LocationParser.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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 +}