新增: webhooks文档使用新api地址

This commit is contained in:
2022-06-24 09:26:01 +08:00
parent 7cad953413
commit 211581cef0
3 changed files with 67 additions and 53 deletions

View File

@@ -18,8 +18,8 @@ class Api::V1::Projects::Webhooks::DeleteService < ApplicationService
$gitea_client.token = nil unless token.blank?
gitea_data
# rescue
# raise Error, "服务器错误,请联系系统管理员!"
rescue
raise Error, "服务器错误,请联系系统管理员!"
end
private

View File

@@ -23,13 +23,13 @@ class Api::V1::Users::Projects::ListService < ApplicationService
def call
raise Error, errors.full_messages.join(", ") unless valid?
# begin
begin
project_query_data
queried_projects
# rescue
# raise Error, "服务器错误,请联系系统管理员!"
# end
rescue
raise Error, "服务器错误,请联系系统管理员!"
end
end
private