chore: Update the filter for articles in the widget (#7961)

This commit is contained in:
Pranav Raj S 2023-09-21 07:10:46 -07:00 committed by GitHub
parent 018c468303
commit c16b801562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Public::Api::V1::Portals::ArticlesController < Public::Api::V1::Portals::B
end
def list_params
params.permit(:query, :locale, :sort)
params.permit(:query, :locale, :sort, :status)
end
def permitted_params

View File

@ -98,6 +98,7 @@ const getMostReadArticles = (slug, locale) => ({
params: {
page: 1,
sort: 'views',
status: 1,
},
});