Scope points to a user

This commit is contained in:
Eugene Burmakin
2024-05-25 13:26:56 +02:00
parent df687db91f
commit 082cbf159d
26 changed files with 98 additions and 37 deletions
@@ -5,7 +5,7 @@ class Api::V1::Overland::BatchesController < ApplicationController
before_action :authenticate_api_key
def create
Overland::BatchCreatingJob.perform_later(batch_params)
Overland::BatchCreatingJob.perform_later(batch_params, current_api_user.id)
render json: { result: 'ok' }, status: :created
end
@@ -5,7 +5,7 @@ class Api::V1::PointsController < ApplicationController
before_action :authenticate_api_key
def create
Owntracks::PointCreatingJob.perform_later(point_params)
Owntracks::PointCreatingJob.perform_later(point_params, current_user.id)
render json: {}, status: :ok
end