mirror of
https://github.com/Freika/dawarich.git
synced 2026-05-07 21:19:23 -05:00
Scope points to a user
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user