Commit 30c8028d authored by Z.J. van de Weg's avatar Z.J. van de Weg
Browse files

Update range to last 24 hours, not current day

parent 7d3beed2
Pipeline #25848 passed with stage
in 1 minute and 58 seconds
......@@ -19,7 +19,7 @@ module GitLab
personal_snippets: { select: :snippets, where: "type='PersonalSnippet'" },
project_snippets: { select: :snippets, where: "type='ProjectSnippet'" },
users: { select: :users },
active_runners: { select: :ci_runners, where: "active=true AND contacted_at > current_date - 1" }
active_runners: { select: :ci_runners, where: "active=true AND contacted_at >= NOW() - '1 day'::INTERVAL" }
}.freeze
def run
......
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