Skip to content

Commit 56cc9fc

Browse files
committed
fix(headlines-search): update filter criteria for country search
- Change filter parameter from 'usage': 'hasActiveHeadlines' to 'hasActiveHeadlines': true - Update filter criteria in two locations within the HeadlinesSearchBloc class
1 parent 46632fd commit 56cc9fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/headlines-search/bloc/headlines_search_bloc.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class HeadlinesSearchBloc
175175
);
176176
case ContentType.country:
177177
response = await _countryRepository.readAll(
178-
filter: {'q': searchTerm, 'usage': 'hasActiveHeadlines'},
178+
filter: {'q': searchTerm, 'hasActiveHeadlines': true},
179179
pagination: const PaginationOptions(limit: _limit),
180180
sort: [const SortOption('name', SortOrder.asc)],
181181
);
@@ -261,7 +261,7 @@ class HeadlinesSearchBloc
261261
processedItems = rawResponse.items.cast<FeedItem>();
262262
case ContentType.country:
263263
rawResponse = await _countryRepository.readAll(
264-
filter: {'q': searchTerm, 'usage': 'hasActiveHeadlines'},
264+
filter: {'q': searchTerm, 'hasActiveHeadlines': true},
265265
pagination: const PaginationOptions(limit: _limit),
266266
sort: [const SortOption('name', SortOrder.asc)],
267267
);

0 commit comments

Comments
 (0)