fix: 与旧版filenums保持一致

This commit is contained in:
yystopf 2024-11-11 11:14:57 +08:00
parent 42171cba21
commit 82e071ecf5
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
if params[:filepath].present?
json.partial! "api/v1/projects/simple_gitea_diff_detail", diff: @result_object
else
json.file_numbers @result_object[:total_data].to_i
json.file_nums @result_object[:total_data].to_i
json.total_addition @result_object[:data]["total_addition"]
json.total_deletion @result_object[:data]["total_deletion"]
json.files @result_object[:data]["files"] do |file|