From ee0b5e30c47ea84deba067a4ce1b0d0e401625ff Mon Sep 17 00:00:00 2001 From: xxq250 Date: Tue, 18 Apr 2023 14:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=8A=A8=E6=80=81=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8F=90=E4=BA=A4=E6=97=A5=E5=BF=97,=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E4=B8=8D=E5=AE=9E=E5=88=AB=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/commit_logs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/commit_logs_controller.rb b/app/controllers/commit_logs_controller.rb index b034f673c..c3bbf9c16 100644 --- a/app/controllers/commit_logs_controller.rb +++ b/app/controllers/commit_logs_controller.rb @@ -22,7 +22,7 @@ class CommitLogsController < ApplicationController commit_log = CommitLog.create(user: user, project: project, repository_id: repository_id, name: repository_name, full_name: repository_full_name, ref: ref, commit_id: commit_id, message: message) - commit_log.project_trends.create(user_id: user.id, project_id: project&.id, action_type: "create") + commit_log.project_trends.create(user_id: user.id, project_id: project&.id, action_type: "create") if user.id !=2 # 统计数据新增 CacheAsyncSetJob.perform_later("project_common_service", {commits: 1}, project.id) end