From 007b90c28450823ba6517cd1efcc1c036de41e96 Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 15 Sep 2022 10:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=97=A7=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/commit_log.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/app/models/commit_log.rb b/app/models/commit_log.rb index 326872b36..9b51b0631 100644 --- a/app/models/commit_log.rb +++ b/app/models/commit_log.rb @@ -3,15 +3,4 @@ class CommitLog < ApplicationRecord belongs_to :project belongs_to :repository - after_create :incre_project_common - after_destroy :decre_project_common - - def incre_project_common - CacheAsyncSetJob.perform_later("project_common_service", {commits: 1}, self.project_id) - end - - def decre_project_common - CacheAsyncSetJob.perform_later("project_common_service", {commits: -1}, self.project_id) - end - end