-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
お問い合わせがあったら管理者に通知する #7510
お問い合わせがあったら管理者に通知する #7510
Changes from all commits
381f7d4
446cc7b
0d0d3f6
63a96a1
897ce23
62ff6c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 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: NOTIFICATION_SENDER_NAME) | ||
User.admins.each do |receiver| | ||
ActivityDelivery.with(inquiry:, receiver:, sender:).notify(:came_inquiry) | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -286,7 +286,7 @@ discord_profile_nagai-kyuukai: | |
times_url: https://discord.com/channels/1079802367970656257/1224708078847397908 | ||
times_id: 1224708078847397908 | ||
|
||
discord_profire_pjord: | ||
discord_profile_pjord: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 誤字見つけたので修正しています🙇♂️ |
||
user: pjord | ||
account_name: | ||
times_url: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1405,7 +1405,7 @@ paginataion-jirou: | |
|
||
pjord: | ||
login_name: pjord | ||
email: | ||
email: [email protected] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. アイコン設定は |
||
crypted_password: $2a$10$n/xv4/1luueN6plzm2OyDezWlZFyGHjQEf4hwAW1r3k.lCm0frPK. # testtest | ||
salt: zW3kQ9ubsxQQtzzzs4ap | ||
name: ピヨルド | ||
|
@@ -1418,7 +1418,7 @@ pjord: | |
course: course1 | ||
company: company1 | ||
admin: true | ||
mentor: false | ||
mentor: true | ||
unsubscribe_email_token: Xw-T0PjrO2LTkCx1C8KA9w | ||
updated_at: "2024-03-09 00:00:30" | ||
created_at: "2024-03-05 00:00:30" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1018,3 +1018,21 @@ harikirio: #必修でないプラクティスも修了しているユーザー | |
created_at: "2020-01-01 00:00:12" | ||
sent_student_followup_message: true | ||
last_activity_at: "2020-01-01 00:00:12" | ||
|
||
pjord: | ||
login_name: pjord | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
email: [email protected] | ||
crypted_password: $2a$10$n/xv4/1luueN6plzm2OyDezWlZFyGHjQEf4hwAW1r3k.lCm0frPK. # testtest | ||
salt: zW3kQ9ubsxQQtzzzs4ap | ||
name: ピヨルド | ||
name_kana: ピヨルド | ||
company: company1 | ||
description: "管理者のピヨルドです。バイキングの末裔です。" | ||
course: course1 | ||
job: office_worker | ||
os: 回答なし | ||
admin: true | ||
adviser: true | ||
updated_at: "2014-01-01 00:00:01" | ||
created_at: "2014-01-01 00:00:01" | ||
last_activity_at: "2014-01-01 00:00:01" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
モデル定義のクラスメソッドは使っていないようでしたので削除しました。
現状は、
ActivityNotifier
クラスのメソッドを使っています。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
既存コードに不要なものがないかしっかり確認されていて素晴らしいと思いました!✨
私が確認する限りでも使ってなさそうでした👀