mirror of
https://github.com/Freika/dawarich.git
synced 2026-05-08 05:29:24 -05:00
Fix moving points on the map
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user