From 974836962d0cbd0821366eef4c7627ef60b160fa Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 2 Oct 2017 12:50:22 +0800 Subject: [PATCH] Fix invalid method call. --- app/jobs/regular/emit_web_hook_event.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/regular/emit_web_hook_event.rb b/app/jobs/regular/emit_web_hook_event.rb index 341702904a..305c10d7e0 100644 --- a/app/jobs/regular/emit_web_hook_event.rb +++ b/app/jobs/regular/emit_web_hook_event.rb @@ -8,7 +8,7 @@ module Jobs end web_hook = WebHook.find_by(id: args[:web_hook_id]) - raise Discourse::InvalidParameters(:web_hook_id) if web_hook.blank? + raise Discourse::InvalidParameters.new(:web_hook_id) if web_hook.blank? unless ping_event?(args[:event_type]) return unless web_hook.active?