From 7033bccca9113db0a70bda6b2f32776ad7b9b450 Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Tue, 19 May 2020 13:56:17 +0800 Subject: [PATCH] change hook create and update params --- app/controllers/hooks_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/hooks_controller.rb b/app/controllers/hooks_controller.rb index d897c1a83..d05ab6b3d 100644 --- a/app/controllers/hooks_controller.rb +++ b/app/controllers/hooks_controller.rb @@ -51,12 +51,12 @@ class HooksController < ApplicationController # } # } - hook_params = params[:hook_params].compact + hook_params = params[:hook_params] Gitea::Hooks::CreateService.new(@user, @repository.try(:identifier), hook_params).call #创建gitea的hook功能 end def update - hook_params = params[:hook_params].compact + hook_params = params[:hook_params] response = Gitea::Hooks::UpdateService.new(@user, @repository.try(:identifier), hook_params, params[:id]).call if response.status == 200 normal_status(1, "更新成功")