Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions api/src/Feature.ElectionRounds/Monitoring/Endpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand All @@ -25,7 +25,7 @@ public override async Task<Ok<Result>> 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
Expand Down
3 changes: 2 additions & 1 deletion api/src/Feature.Locations/Services/LocationParser.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Feature.Locations.Options;
using Sentry;

namespace Feature.Locations.Services;

Expand Down Expand Up @@ -88,4 +89,4 @@ private ValidationResult Validate(LocationImportModel location, int rowIndex)

return _locationImportModelValidator.Validate(validationContext);
}
}
}
Loading