diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-28 18:11:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-28 18:11:11 +0300 |
commit | 936e34d90c716a80fd39ea26d32df5de04b91515 (patch) | |
tree | 0807e76dbe61ef91817a2db04a272c87ba03b02e /app/models/commit_status.rb | |
parent | cf73ed7d11fdf517c230038fe8c88c96b7e3d6f0 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r-- | app/models/commit_status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index 0935db279df..8dd650751bf 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -58,8 +58,8 @@ class CommitStatus < Ci::ApplicationRecord scope :in_pipelines, ->(pipelines) { where(pipeline: pipelines) } scope :eager_load_pipeline, -> { eager_load(:pipeline, project: { namespace: :route }) } scope :with_pipeline, -> { joins(:pipeline) } - scope :created_at_before, ->(date) { where('ci_builds.created_at < ?', date) } scope :updated_at_before, ->(date) { where('ci_builds.updated_at < ?', date) } + scope :created_at_before, ->(date) { where('ci_builds.created_at < ?', date) } scope :updated_before, ->(lookback:, timeout:) { where('(ci_builds.created_at BETWEEN ? AND ?) AND (ci_builds.updated_at BETWEEN ? AND ?)', lookback, timeout, lookback, timeout) } |