Commit d6721845 authored by Justin Ho's avatar Justin Ho

Fix params passed to service_hook_logs

Due to the renaming of routes, the param is now
different and should be updated accordingly.
parent 523c3082
...@@ -13,7 +13,7 @@ class Projects::ServiceHookLogsController < Projects::HookLogsController ...@@ -13,7 +13,7 @@ class Projects::ServiceHookLogsController < Projects::HookLogsController
private private
def integration def integration
@integration ||= @project.find_or_initialize_integration(params[:service_id]) @integration ||= @project.find_or_initialize_integration(params[:integration_id])
end end
override :hook override :hook
......
...@@ -11,7 +11,7 @@ RSpec.describe Projects::ServiceHookLogsController do ...@@ -11,7 +11,7 @@ RSpec.describe Projects::ServiceHookLogsController do
{ {
namespace_id: project.namespace, namespace_id: project.namespace,
project_id: project, project_id: project,
service_id: integration.to_param, integration_id: integration.to_param,
id: log.id id: log.id
} }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment