Fix moving points on the map

This commit is contained in:
Eugene Burmakin
2025-03-24 00:01:18 +01:00
parent b1a0aa2179
commit 24a148b181
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class Api::V1::PointsController < ApiController
def update
point = current_api_user.tracked_points.find(params[:id])
point.update(point_params)
point.update(lonlat: "POINT(#{point_params[:longitude]} #{point_params[:latitude]})")
render json: point_serializer.new(point).call
end