mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
更改:codestats回退
This commit is contained in:
@@ -9,8 +9,6 @@ class Api::V1::Projects::CodeStats::ListService < ApplicationService
|
||||
@owner = project&.owner.login
|
||||
@repo = project&.identifier
|
||||
@token = token
|
||||
@page = params[:page]
|
||||
@limit = params[:limit]
|
||||
end
|
||||
|
||||
def call
|
||||
@@ -22,9 +20,7 @@ class Api::V1::Projects::CodeStats::ListService < ApplicationService
|
||||
private
|
||||
def request_params
|
||||
param = {
|
||||
access_token: token,
|
||||
page: page,
|
||||
limit: limit
|
||||
access_token: token
|
||||
}
|
||||
param.merge!(ref: ref) if ref.present?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user