Skip to content
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

提出物の最終コメントが5日経過したことを知らせる通知のメンション部分が空になってしまうバグを修正 #8218

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/notifiers/discord_notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def product_review_not_completed(params = {})
webhook_url = params[:webhook_url] || Rails.application.secrets[:webhook][:mentor]

comment = params[:comment]
product_checker_name = User.find_by(id: comment.commentable.checker_id).login_name
product_checker_name = comment.commentable.checker.discord_profile&.account_name
product_checker_discord_id = Discord::Server.find_member_id(member_name: product_checker_name)
product_checker_discord_name = "<@#{product_checker_discord_id}>"
product = comment.commentable
Expand Down
Loading