Browse Source

fix: 与旧版filenums保持一致

pull/347/head
yystopf 1 year ago
parent
commit
82e071ecf5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/api/v1/projects/commits/files.json.jbuilder

+ 1
- 1
app/views/api/v1/projects/commits/files.json.jbuilder 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|


Loading…
Cancel
Save