Skip to content

Commit

Permalink
AB#1064 Events and Event Series don't have email addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
gjvoosten committed Nov 5, 2024
1 parent 9f9d019 commit 2044b1c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/mil/dds/anet/search/AbstractEventSearcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ protected void buildQuery(EventSearchQuery query) {
qb.addFromClause("\"events\"");
qb.addEnumEqualsClause("status", "events.status", query.getStatus());

if (query.getEmailNetwork() != null) {
// Should never match
qb.addWhereClause("FALSE");
}

if (hasTextQuery(query)) {
addTextQuery(query);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ protected void buildQuery(EventSeriesSearchQuery query) {
qb.addFromClause("\"eventSeries\"");
qb.addEnumEqualsClause("status", "\"eventSeries\".status", query.getStatus());

if (query.getEmailNetwork() != null) {
// Should never match
qb.addWhereClause("FALSE");
}

if (hasTextQuery(query)) {
addTextQuery(query);
}
Expand Down

0 comments on commit 2044b1c

Please sign in to comment.