Bundle of corrections and one doorkeeper writing role change

This commit is contained in:
Fosco Marotto
2021-02-09 22:32:24 -05:00
parent 382fd31ec7
commit 729c00a5a9
12 changed files with 18 additions and 45 deletions

View File

@@ -46,11 +46,9 @@ class Api::V1::Timelines::GroupController < Api::BaseController
end
def cached_group_statuses
gs = nil
ActiveRecord::Base.connected_to(role: :reading) do
gs = cache_collection group_statuses, Status
cache_collection group_statuses, Status
end
gs
end
def group_statuses