Merge pull request #7457 from betagouv/US/fix-webhook
fix(WebHookJob): missing find procedure
This commit is contained in:
commit
011fcd40d8
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class WebHookJob < ApplicationJob
|
||||||
state: state,
|
state: state,
|
||||||
updated_at: updated_at
|
updated_at: updated_at
|
||||||
}
|
}
|
||||||
|
procedure = Procedure.find(procedure_id)
|
||||||
Typhoeus.post(procedure.web_hook_url, body: body, timeout: TIMEOUT)
|
Typhoeus.post(procedure.web_hook_url, body: body, timeout: TIMEOUT)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue