Fix invalid method call.
This commit is contained in:
parent
5c1d551e9c
commit
974836962d
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue