Fix invalid method call.

This commit is contained in:
Guo Xiang Tan 2017-10-02 12:50:22 +08:00
parent 5c1d551e9c
commit 974836962d
1 changed files with 1 additions and 1 deletions

View File

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