diff --git a/app/jobs/notify_discord_of_thread_job.rb b/app/jobs/notify_discord_of_thread_job.rb index 1430e553..f1e18058 100644 --- a/app/jobs/notify_discord_of_thread_job.rb +++ b/app/jobs/notify_discord_of_thread_job.rb @@ -5,7 +5,7 @@ class NotifyDiscordOfThreadJob < ApplicationJob def perform(*args) thread_id = args.shift - thread = Thredded::Topic.find_by(thread_id) + thread = Thredded::Topic.find_by(id: thread_id) return unless thread webhook_url = ENV.fetch('DISCORD_FORUMS_WEBHOOK', '').freeze