mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 18:23:39 +08:00
15 lines
288 B
Ruby
15 lines
288 B
Ruby
module Jobs
|
|
|
|
class UpdateGroupMentions < Jobs::Base
|
|
|
|
def execute(args)
|
|
group = Group.find_by(id: args[:group_id])
|
|
return unless group
|
|
|
|
previous_group_name = args[:previous_name]
|
|
|
|
GroupMentionsUpdater.update(group.name, previous_group_name)
|
|
end
|
|
end
|
|
end
|