Skip to content

Commit

Permalink
Add contentType to editions crosswords query (#27656)
Browse files Browse the repository at this point in the history
Excludes any crosswords that are not playable. These will not be published with the "crossword" content type.
  • Loading branch information
JamieB-gu authored Dec 9, 2024
1 parent 59a82e0 commit cdd23dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions applications/app/controllers/CrosswordsController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ class CrosswordEditionsController(
*/
private lazy val crosswordsQuery =
SearchQuery()
.contentType("crossword")
.tag(crosswordTags)
.useDate("newspaper-edition")
.pageSize(25)
Expand Down

0 comments on commit cdd23dd

Please sign in to comment.