From 8dddae7774a211a8adf1b1f1e49b04880d356faf Mon Sep 17 00:00:00 2001 From: goruchan Date: Tue, 16 Apr 2024 22:49:31 +0900 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E9=80=81=E4=BF=A1=E8=80=85?= =?UTF-8?q?=E3=81=AE=E5=90=8D=E5=89=8D=E3=82=92=E5=AE=9A=E6=95=B0=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/inquiry_notifier.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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