mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 07:29:02 +01:00
Change markers API to use a replica (#25851)
This commit is contained in:
parent
fdc3ff7c2d
commit
8d0c69529a
1 changed files with 4 additions and 1 deletions
|
@ -7,7 +7,10 @@ class Api::V1::MarkersController < Api::BaseController
|
|||
before_action :require_user!
|
||||
|
||||
def index
|
||||
@markers = current_user.markers.where(timeline: Array(params[:timeline])).index_by(&:timeline)
|
||||
with_read_replica do
|
||||
@markers = current_user.markers.where(timeline: Array(params[:timeline])).index_by(&:timeline)
|
||||
end
|
||||
|
||||
render json: serialize_map(@markers)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue