From 4999f7ed234566e7af2ba2eb73722d1bc6bef5d8 Mon Sep 17 00:00:00 2001 From: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Date: Thu, 2 Nov 2023 15:19:19 +0530 Subject: [PATCH] fix: Fixes wrong page size in category filter in articles page (#8270) --- app/controllers/api/v1/accounts/articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/accounts/articles_controller.rb b/app/controllers/api/v1/accounts/articles_controller.rb index 7762cc476..d164778ac 100644 --- a/app/controllers/api/v1/accounts/articles_controller.rb +++ b/app/controllers/api/v1/accounts/articles_controller.rb @@ -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