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

@@ -56,11 +56,9 @@ class Api::V1::Timelines::GroupCollectionController < Api::BaseController
end
def cached_group_collection_statuses
gcs = nil
ActiveRecord::Base.connected_to(role: :reading) do
gcs = cache_collection group_collection_statuses, Status
cache_collection group_collection_statuses, Status
end
gcs
end
def group_collection_statuses