forked from Trustie/forgeplus
修复:删除旧的逻辑
This commit is contained in:
parent
481d1b7db0
commit
007b90c284
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue