Skip to content

Commit

Permalink
discord_notifierのtomorrow_regular_eventのwebhook_urlの取得方法を変更
Browse files Browse the repository at this point in the history
従来の方法ではwebhook_urlを取得できないためsecretsから取得するようにした。(定期イベントについてはまだ本番環境にリリースされていない)
  • Loading branch information
keiz1213 committed Oct 2, 2022
1 parent b19b577 commit 756f6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/notifiers/discord_notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def hibernated(params = {})
def tomorrow_regular_event(params = {})
params.merge!(@params)
event = params[:event]
webhook_url = params[:webhook_url] || ENV['DISCORD_ALL_WEBHOOK_URL']
webhook_url = params[:webhook_url] || Rails.application.secrets[:webhook][:admin]
day_of_the_week = %w[ ]
event_date = event.next_event_date

Expand Down

0 comments on commit 756f6ba

Please sign in to comment.