mirror of
https://github.com/discourse/discourse-subscriptions.git
synced 2025-03-08 18:49:15 +00:00
13 lines
340 B
Ruby
13 lines
340 B
Ruby
|
|
module Jobs
|
|
class AwardGroup < ::Jobs::Onceoff
|
|
def execute_onceoff(args)
|
|
puts '====================== The Job was executed ==========================='
|
|
user = User.find_by_email(args[:email])
|
|
if user.present?
|
|
DiscourseDonations::Rewards.new(user).add_to_group(args[:group_name])
|
|
end
|
|
end
|
|
end
|
|
end
|