scinote-web/app/notifications/recipients/designate_to_my_module_recipients.rb

13 lines
333 B
Ruby

# frozen_string_literal: true
module Recipients
class DesignateToMyModuleRecipients < MyModuleDesignatedRecipients
private
def activity_recipients
activity = Activity.find(@params[:activity_id])
user = User.find_by(id: activity.values.dig('message_items', 'user_target', 'id'))
[user]
end
end
end