forked from Gitlink/forgeplus
file_commits hat接口性能问题,增加参数stat
This commit is contained in:
parent
cc89a61892
commit
8a23fc0fbc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue