From b1f460d760b86d157389c5967ceee2b884a24441 Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 8 Sep 2022 10:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9Awebhook=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=95=B0=E9=87=8F=E9=99=90=E5=88=B6=E4=B8=BA50?= =?UTF-8?q?=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects/webhooks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects/webhooks_controller.rb b/app/controllers/projects/webhooks_controller.rb index 9f36da206..675a65fc8 100644 --- a/app/controllers/projects/webhooks_controller.rb +++ b/app/controllers/projects/webhooks_controller.rb @@ -9,7 +9,7 @@ class Projects::WebhooksController < Projects::BaseController def create ActiveRecord::Base.transaction do - return render_error("webhooks数量已到上限!请删除暂不使用的webhooks以进行添加操作") if @project.webhooks.size > 19 + return render_error("webhooks数量已到上限!请删除暂不使用的webhooks以进行添加操作") if @project.webhooks.size > 49 return render_error("参数错误.") unless webhook_params.present? form = Projects::Webhooks::CreateForm.new(webhook_params) return render json: {status: -1, message: form.errors} unless form.validate!