diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-12-27 23:58:37 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-12-27 23:58:37 +0300 |
commit | ffca0da08f22e6b23587ecf0645b44c3c427eddd (patch) | |
tree | f93bea85fa3dee9d81cf89b7d4a264d2b8fb177f /app | |
parent | e8254c3076529d48d8025900f81e1eca8ad0b3cc (diff) |
Revert "Merge branch 'fix-latest-pipeine-ordering-again' into 'master'"
This reverts commit a18ad6cf733ce9a466a32f32ea8e813f19caa3a5.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index a7618ef7e3d..6894a5763ff 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -102,7 +102,7 @@ module Ci end def self.latest_successful_for(ref) - success.latest(ref).order(id: :desc).first + success.latest(ref).first end def self.truncate_sha(sha) |