fix issue count error

This commit is contained in:
呱呱呱
2023-11-16 14:15:37 +08:00
parent f9f0485e50
commit 23a1be8ce3
3 changed files with 5 additions and 9 deletions

View File

@@ -81,7 +81,7 @@ class Api::V1::Issues::CreateService < ApplicationService
end
project.del_project_issue_cache_delete_count # 把缓存里存储项目删除issue的个数清除掉
unless project.id.zero?
unless @project.id.zero?
# 新增时向grimoirelab推送事件
IssueWebhookJob.set(wait: 5.seconds).perform_later(@created_issue.id)

View File

@@ -88,7 +88,7 @@ class Api::V1::Issues::UpdateService < ApplicationService
build_after_issue_journal_details if @updated_issue.previous_changes.present? # 操作记录
build_previous_issue_changes
build_cirle_blockchain_token if blockchain_token_num.present?
unless project.id.zero?
unless @project.id.zero?
# @信息发送
AtmeService.call(current_user, @atme_receivers, @issue) unless receivers_login.blank?
# 消息发送