Friday, September 20, 2024 3:00:59 AM
> settings

Customize


Authenticate

> sync_command_configurations_job.rb
# frozen_string_literal: true

class SyncCommandConfigurationsJob
  include ::SuckerPunch::Job

  def perform(_)
    ESM::ApplicationRecord.connection_pool.with_connection do
      community_ids = ESM::Community.all.pluck(:id)

      community_ids.each do |community_id|
        SyncCommandConfigurationsForCommunityJob.perform_async(community_id, ESM::Command.configurations)
      end
    end
  end
end
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8