Commit fa5ac55c authored by Stan Hu's avatar Stan Hu

Merge branch 'use-dast-site-profile-finder-233456' into 'master'

Refactor DastSiteProfilesController to use finder

See merge request gitlab-org/gitlab!41064
parents 27270f13 96f9d759
......@@ -11,10 +11,7 @@ module Projects
end
def edit
@site_profile = @project
.dast_site_profiles
.with_dast_site
.find(params[:id])
@site_profile = DastSiteProfilesFinder.new(project_id: @project.id, id: params[:id]).execute.first! # rubocop: disable CodeReuse/ActiveRecord
end
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