fix query

This commit is contained in:
drusepth 2021-12-22 19:18:01 -08:00
parent d6f1684066
commit 547f5daaff

View File

@ -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