更改:codestats回退

This commit is contained in:
2023-02-02 18:30:07 +08:00
parent 87412643cd
commit bfe14352c0
3 changed files with 9 additions and 14 deletions

View File

@@ -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?