From 1b9349bc52e510d91d921ba0d743b65eb15986b9 Mon Sep 17 00:00:00 2001 From: rubic0n Date: Sun, 24 Jan 2021 23:19:20 -0600 Subject: [PATCH] Remove unnecessary queries from requested conversations count --- .../v1/chat_conversations/requested_conversations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/chat_conversations/requested_conversations_controller.rb b/app/controllers/api/v1/chat_conversations/requested_conversations_controller.rb index b56f2200..d7c67fe6 100644 --- a/app/controllers/api/v1/chat_conversations/requested_conversations_controller.rb +++ b/app/controllers/api/v1/chat_conversations/requested_conversations_controller.rb @@ -4,7 +4,7 @@ class Api::V1::ChatConversations::RequestedConversationsController < Api::BaseCo before_action -> { authorize_if_got_token! :read, :'read:chats' } before_action :require_user! - after_action :insert_pagination_headers + after_action :insert_pagination_headers, only: :index def index @chat_conversations = load_chat_conversations