Update gitea hooks api

This commit is contained in:
Jasder 2020-09-07 11:23:09 +08:00
parent 5cc5404915
commit a8821de85f
3 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ class Gitea::Hooks::CreateService < Gitea::ClientService
private
def params
Hash.new.merge(token: token, data: body).compact!
Hash.new.merge(token: token, data: body).compact
end
def url

View File

@ -17,7 +17,7 @@ class Gitea::Hooks::ListService < Gitea::ClientService
Hash.new.merge(token: token,
page: params[:page],
limit: params[:limit]
).compact!
).compact
end
def url

View File

@ -9,7 +9,7 @@ class Gitea::Hooks::UpdateService < Gitea::ClientService
end
def call
response = patch(url, params)
patch(url, params)
end
private