mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-02-27 14:31:48 +00:00
10 lines
260 B
Ruby
10 lines
260 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
Fabricator(:solved_web_hook, from: :web_hook) do
|
||
|
transient solved_hook: WebHookEventType.find_by(name: 'solved')
|
||
|
|
||
|
after_build do |web_hook, transients|
|
||
|
web_hook.web_hook_event_types = [transients[:solved_hook]]
|
||
|
end
|
||
|
end
|