mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 19:01:52 +08:00
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
Block a user