Skip to content

Commit 9ce7336

Browse files
committed
SSCS-10722 Ensure processing venue exists.
1 parent fc33a6d commit 9ce7336

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/processor/src/main/java/uk/gov/hmcts/reform/migration/queries/CcdElasticSearchQueries.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public static BoolQueryBuilder unsetCaseAccessManagementFieldsQuery() {
4444
.must(QueryBuilders.boolQuery()
4545
.should(existsQuery("data.appeal.appellant.address.postcode"))
4646
.should(existsQuery("data.appeal.appellant.appointee.address.postcode"))
47-
.minimumShouldMatch(1))
47+
.minimumShouldMatch(1)
48+
.must(existsQuery("data.processingVenue")))
4849
.mustNot(
4950
QueryBuilders.boolQuery()
5051
.should(existsQuery("data.CaseAccessCategory"))

0 commit comments

Comments
 (0)