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