mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-13 00:06:01 +08:00
修复
This commit is contained in:
@@ -429,7 +429,7 @@ class Project < ApplicationRecord
|
||||
last_issue = self.issues.last
|
||||
deleted_issue_count = ($redis_cache.hget("issue_cache_delete_count", self.id) || 0).to_i
|
||||
|
||||
last_issue.project_issues_index.present? ? last_issue.project_issues_index + deleted_issue_count : 1
|
||||
last_issue&.project_issues_index.present? ? last_issue.project_issues_index + deleted_issue_count : 1
|
||||
end
|
||||
|
||||
def incre_project_issue_cache_delete_count
|
||||
|
||||
Reference in New Issue
Block a user