mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
13 lines
264 B
Ruby
13 lines
264 B
Ruby
|
|
# frozen_string_literal: true
|
||
|
|
|
||
|
|
class Tracks::IncrementalCheckJob < ApplicationJob
|
||
|
|
queue_as :tracks
|
||
|
|
|
||
|
|
def perform(user_id, point_id)
|
||
|
|
user = User.find(user_id)
|
||
|
|
point = Point.find(point_id)
|
||
|
|
|
||
|
|
Tracks::IncrementalProcessor.new(user, point).call
|
||
|
|
end
|
||
|
|
end
|