mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 00:37:57 -05:00
14 lines
272 B
Ruby
14 lines
272 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Import::UpdatePointsCountJob < ApplicationJob
|
|
queue_as :imports
|
|
|
|
def perform(import_id)
|
|
import = Import.find(import_id)
|
|
|
|
import.update(processed: import.points.count)
|
|
rescue ActiveRecord::RecordNotFound
|
|
nil
|
|
end
|
|
end
|