From 481d1b7db0f77780c6ba168354a34371a8a0d959 Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 15 Sep 2022 09:57:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9Acommit=20log?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=A7=A6=E5=8F=91=E8=A7=84=E5=88=99?= 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, 2 insertions(+) diff --git a/app/controllers/commit_logs_controller.rb b/app/controllers/commit_logs_controller.rb index 3be1794a7..cc071340e 100644 --- a/app/controllers/commit_logs_controller.rb +++ b/app/controllers/commit_logs_controller.rb @@ -22,6 +22,8 @@ class CommitLogsController < ApplicationController 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) + # 统计数据新增 + CacheAsyncSetJob.perform_later("project_common_service", {commits: 1}, project.id) end end