mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
修复:last index 获取方式
This commit is contained in:
@@ -426,7 +426,7 @@ class Project < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def get_last_project_issues_index
|
def get_last_project_issues_index
|
||||||
last_issue = self.issues.last
|
last_issue = self.issues.issue_issue.last
|
||||||
deleted_issue_count = ($redis_cache.hget("issue_cache_delete_count", self.id) || 0).to_i
|
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 : 0
|
last_issue&.project_issues_index.present? ? last_issue.project_issues_index + deleted_issue_count : 0
|
||||||
|
|||||||
Reference in New Issue
Block a user