Skip to content

Commit

Permalink
fix: extend search results to 50
Browse files Browse the repository at this point in the history
  • Loading branch information
KestasVenslauskas committed Jul 8, 2024
1 parent 2a384f8 commit bde346b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const articlesGetByTag = (tag: string, count: number) => {
* Return array of articles by search filter
*/
export const searchArticles = (query: string, filter: SearchFilter) => {
let url = `${BASE_URL}search?q=${query}&type=${filter.type}&section=${filter.section}&days=${filter.days}`;
let url = `${BASE_URL}search?q=${query}&type=${filter.type}&section=${filter.section}&days=${filter.days}&count=50`;

if (filter.searchExactPhrase) {
url += '&exact=1';
Expand Down

0 comments on commit bde346b

Please sign in to comment.