Browse Source

Merge branch 'develop' into standalone_develop

pull/313/head
yystopf 3 years ago
parent
commit
6a2cfc5fde
1 changed files with 0 additions and 11 deletions
  1. +0
    -11
      app/models/commit_log.rb

+ 0
- 11
app/models/commit_log.rb View File

@@ -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…
Cancel
Save