mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
13 lines
238 B
Ruby
13 lines
238 B
Ruby
# frozen_string_literal: true
|
|
|
|
class BulkStatsCalculatingJob < ApplicationJob
|
|
queue_as :stats
|
|
|
|
def perform
|
|
user_ids = User.pluck(:id)
|
|
|
|
user_ids.each do |user_id|
|
|
Stats::BulkCalculator.new(user_id).call
|
|
end
|
|
end
|
|
end
|