fix: Fixes wrong page size in category filter in articles page (#8270)

This commit is contained in:
Nithin David Thomas 2023-11-02 15:19:19 +05:30 committed by GitHub
parent e8f4ac632f
commit 4999f7ed23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ class Api::V1::Accounts::ArticlesController < Api::V1::Accounts::BaseController
@articles_count = @all_articles.count
@articles = if list_params[:category_slug].present?
@all_articles.order_by_position.page(@current_page).per(50)
@all_articles.order_by_position.page(@current_page)
else
@all_articles.order_by_updated_at.page(@current_page)
end