file_commits hat接口性能问题,增加参数stat

This commit is contained in:
xxq250 2023-05-05 15:40:18 +08:00
parent cc89a61892
commit 8a23fc0fbc
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class Gitea::Repository::Commits::FileListService < Gitea::ClientService
private
def params
{sha: args[:sha] || 'master', page: args[:page] || PAGINATE_DEFAULT_PAGE, limit: args[:limit] || PAGINATE_DEFAULT_LIMIT, token: args[:token] || "" }
{sha: args[:sha] || 'master', page: args[:page] || PAGINATE_DEFAULT_PAGE, limit: args[:limit] || PAGINATE_DEFAULT_LIMIT, token: args[:token] || "", stat: args[:page].to_i != 1 }
end
def url