blob: 13ce2454cf5d22d8765eca7fefa54241204c34c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
class ApproveBlockedPendingApprovalUsersWorker
include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3
idempotent!
feature_category :user_profile
def perform(current_user_id)
current_user = User.find(current_user_id)
User.blocked_pending_approval.find_each do |user|
Users::ApproveService.new(current_user).execute(user)
end
end
end
|