Commit 8a9955cf authored by Shinya Maeda's avatar Shinya Maeda

Fix wrong sql at calculation size

parent cffee49f
......@@ -223,7 +223,7 @@ module Gitlab
end
def calculate_size
job_chunks.order(chunk_index: :desc).last.try(&:end_offset).to_i
job_chunks.order(chunk_index: :desc).first.try(&:end_offset).to_i
end
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