diff --git a/app/models/inquiry_notifier.rb b/app/models/inquiry_notifier.rb index ca13c209e62..fc51872db3a 100644 --- a/app/models/inquiry_notifier.rb +++ b/app/models/inquiry_notifier.rb @@ -1,11 +1,13 @@ # frozen_string_literal: true class InquiryNotifier + NOTIFICATION_SENDER_NAME = 'pjord' + def call(payload) inquiry = payload[:inquiry] return if inquiry.nil? - sender = User.find_by(login_name: 'pjord') + sender = User.find_by(login_name: NOTIFICATION_SENDER_NAME) User.admins.each do |receiver| ActivityDelivery.with(inquiry:, receiver:, sender:).notify(:came_inquiry) end