Commit 78c37bdd authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 5151ebf4
......@@ -63,7 +63,7 @@ class Projects::ArtifactsController < Projects::ApplicationController
if params[:ref_name]
builds = project.latest_success_builds_for(params[:ref_name])
builds.where(name: params[:job]).first
builds.find_by(name: params[:job])
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