Commit ebd8b7f6 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Use new SnippetsFinder signature in API

parent 19e91e4b
...@@ -91,8 +91,8 @@ module API ...@@ -91,8 +91,8 @@ module API
end end
def find_project_snippet(id) def find_project_snippet(id)
finder_params = { filter: :by_project, project: user_project } finder_params = { project: user_project }
SnippetsFinder.new.execute(current_user, finder_params).find(id) SnippetsFinder.new(current_user, finder_params).execute.find(id)
end end
def find_merge_request_with_access(iid, access_level = :read_merge_request) def find_merge_request_with_access(iid, access_level = :read_merge_request)
......
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