Browse Source

项目动态增加提交日志,去掉不实别用户

pull/342/head
xxq250 3 years ago
parent
commit
ee0b5e30c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/commit_logs_controller.rb

+ 1
- 1
app/controllers/commit_logs_controller.rb View File

@@ -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


Loading…
Cancel
Save