Skip to content

Commit

Permalink
fix(import): only update flemish geometries
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneD committed Nov 5, 2024
1 parent 6ebd178 commit 165bf3d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using Autofac;
using Be.Vlaanderen.Basisregisters.Api;
using Be.Vlaanderen.Basisregisters.CommandHandling.Idempotency;
using Be.Vlaanderen.Basisregisters.GrAr.Common;
using Be.Vlaanderen.Basisregisters.GrAr.Provenance;
using Infrastructure.Vrbg;
using Microsoft.AspNetCore.Mvc;
Expand Down Expand Up @@ -48,7 +49,10 @@ public async Task<IActionResult> Update(CancellationToken cancellationToken = de
{
x.MunicipalityId,
x.NisCode
});
})
.ToList()
.Where(x => RegionFilter.IsFlemishRegion(x.NisCode!))
.ToList();

foreach (var municipality in municipalitiesToUpdate)
{
Expand Down

0 comments on commit 165bf3d

Please sign in to comment.