Merge pull request #7457 from betagouv/US/fix-webhook

fix(WebHookJob): missing find procedure
This commit is contained in:
mfo 2022-06-10 17:30:28 +02:00 committed by GitHub
commit 011fcd40d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ class WebHookJob < ApplicationJob
state: state,
updated_at: updated_at
}
procedure = Procedure.find(procedure_id)
Typhoeus.post(procedure.web_hook_url, body: body, timeout: TIMEOUT)
end
end