FEATURE: add outgoing web hooks for Chat messages

This commit is contained in:
Sérgio Saquetim
2023-09-13 17:31:42 -03:00
committed by GitHub
parent 6c20d8cc8c
commit e03dd76dc6
10 changed files with 324 additions and 4 deletions

View File

@ -0,0 +1,9 @@
# frozen_string_literal: true
Fabricator(:outgoing_chat_message_web_hook, from: :web_hook) do
transient chat_message_hook: WebHookEventType.find_by(name: "chat_message")
after_build do |web_hook, transients|
web_hook.web_hook_event_types = [transients[:chat_message_hook]]
end
end