Commit c1edf319 authored by Dylan Griffith's avatar Dylan Griffith
Browse files

Order builds by id instead of created_at in RegisterJobService

parent 6c9efaa9c68f
......@@ -85,7 +85,7 @@ def builds_for_shared_runner
end
def builds_for_project_runner
new_builds.where(project: runner.projects.without_deleted.with_builds_enabled).order('created_at ASC')
new_builds.where(project: runner.projects.without_deleted.with_builds_enabled).order('id ASC')
end
def builds_for_group_runner
......@@ -94,7 +94,7 @@ def builds_for_group_runner
.with_group_runners_enabled
.with_builds_enabled
.without_deleted
new_builds.where(project: projects).order('created_at ASC')
new_builds.where(project: projects).order('id ASC')
end
def running_builds_for_shared_runners
......
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