From f1b699886f28b61affde829839ed4b77dbc07c00 Mon Sep 17 00:00:00 2001 From: emalfroy Date: Thu, 12 Dec 2024 16:20:20 +0100 Subject: [PATCH] fix: or-2334 remove chaining MustNot for beheer zoeken --- .../SearchDuplicateVerenigingDetectionService.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/AssociationRegistry.Admin.Api/DuplicateDetection/SearchDuplicateVerenigingDetectionService.cs b/src/AssociationRegistry.Admin.Api/DuplicateDetection/SearchDuplicateVerenigingDetectionService.cs index 6ba1777ff..b5e795e63 100644 --- a/src/AssociationRegistry.Admin.Api/DuplicateDetection/SearchDuplicateVerenigingDetectionService.cs +++ b/src/AssociationRegistry.Admin.Api/DuplicateDetection/SearchDuplicateVerenigingDetectionService.cs @@ -36,7 +36,6 @@ await _client IsNietDubbel ) .MustNot(BeVerwijderd) - .MustNot(BeDubbel) .Filter(MatchOpPostcodeOfGemeente(gemeentes, postcodes) ) ) @@ -84,15 +83,6 @@ private static QueryContainer BeVerwijderd(QueryContainerDescriptor shouldDescriptor) - { - return shouldDescriptor - .Term(termDescriptor - => termDescriptor - .Field(document => document.IsDubbel) - .Value(true)); - } - private static Func, QueryContainer> MatchOpPostcode(string[] postcodes) { return postalCodesQuery => postalCodesQuery