diff options
Diffstat (limited to 'lib/api/concerns/packages/conan_endpoints.rb')
-rw-r--r-- | lib/api/concerns/packages/conan_endpoints.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/api/concerns/packages/conan_endpoints.rb b/lib/api/concerns/packages/conan_endpoints.rb index e65e8f8710c..a7a98482bcc 100644 --- a/lib/api/concerns/packages/conan_endpoints.rb +++ b/lib/api/concerns/packages/conan_endpoints.rb @@ -82,7 +82,8 @@ module API route_setting :authentication, job_token_allowed: true, basic_auth_personal_access_token: true get 'conans/search', urgency: :low do - service = ::Packages::Conan::SearchService.new(current_user, query: params[:q]).execute + service = ::Packages::Conan::SearchService.new(search_project, current_user, query: params[:q]).execute + service.payload end @@ -350,7 +351,7 @@ module API delete urgency: :low do authorize!(:destroy_package, project) - track_package_event('delete_package', :conan, category: 'API::ConanPackages', user: current_user, project: project, namespace: project.namespace) + track_package_event('delete_package', :conan, category: 'API::ConanPackages', project: project, namespace: project.namespace) package.destroy end |