Skip to content
Snippets Groups Projects
Unverified Commit 8d0c6952 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Change markers API to use a replica (#25851)

parent fdc3ff7c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment