mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
14 lines
310 B
Ruby
14 lines
310 B
Ruby
class UpdateSlackNeighborhoodChannelsJob < ApplicationJob
|
|
queue_as :literally_whenever
|
|
|
|
include HasEnqueueControl
|
|
enqueue_limit
|
|
|
|
def perform
|
|
User.where.not(slack_uid: nil).find_each(batch_size: 1000) do |user|
|
|
user.set_neighborhood_channel
|
|
user.save! if user.changed?
|
|
end
|
|
end
|
|
end
|