From b0370ce44dc0994ef4e21a968e2d53e29fcf676e Mon Sep 17 00:00:00 2001 From: Tejaswini Chile Date: Thu, 25 Nov 2021 12:01:31 +0530 Subject: [PATCH] Feat: Fix contact filter pagination (#3463) --- app/controllers/api/v1/accounts/contacts_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/accounts/contacts_controller.rb b/app/controllers/api/v1/accounts/contacts_controller.rb index e22341d90..fcb1de831 100644 --- a/app/controllers/api/v1/accounts/contacts_controller.rb +++ b/app/controllers/api/v1/accounts/contacts_controller.rb @@ -11,9 +11,9 @@ class Api::V1::Accounts::ContactsController < Api::V1::Accounts::BaseController RESULTS_PER_PAGE = 15 before_action :check_authorization - before_action :set_current_page, only: [:index, :active, :search] + before_action :set_current_page, only: [:index, :active, :search, :filter] before_action :fetch_contact, only: [:show, :update, :destroy, :contactable_inboxes, :destroy_custom_attributes] - before_action :set_include_contact_inboxes, only: [:index, :search] + before_action :set_include_contact_inboxes, only: [:index, :search, :filter] def index @contacts_count = resolved_contacts.count