mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 17:40:33 +08:00
14 lines
319 B
Ruby
14 lines
319 B
Ruby
# frozen_string_literal: true
|
|
|
|
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
|