2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-01-18 00:39:34 -05:00
|
|
|
module Jobs
|
2019-10-02 00:01:53 -04:00
|
|
|
class UpdateGroupMentions < ::Jobs::Base
|
2017-01-18 00:39:34 -05:00
|
|
|
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
|