Remove raw data from visited cities api endpoint

This commit is contained in:
Eugene Burmakin 2025-12-08 21:37:54 +01:00
parent 6cfea8f1b7
commit 6f83851563

View file

@ -9,6 +9,7 @@ class Api::V1::Countries::VisitedCitiesController < ApiController
points = current_api_user
.points
.without_raw_data
.where(timestamp: start_at..end_at)
render json: { data: CountriesAndCities.new(points).call }