Merge pull request 'Pm项目关闭grimoirelab推送事件' (#172) from KingChan/forgeplus:pm_project_develop into pm_project_develop

This commit is contained in:
KingChan 2023-11-02 10:29:22 +08:00
commit 32251e8a7b
1 changed files with 2 additions and 2 deletions

View File

@ -71,14 +71,14 @@ class Api::V1::Issues::CreateService < ApplicationService
if @created_issue.blockchain_token_num.present? && @created_issue.blockchain_token_num > 0
Blockchain::CreateIssue.call({user_id: current_user.id, project_id: @created_issue.project_id, token_num: @created_issue.blockchain_token_num})
end
push_activity_2_blockchain("issue_create", @created_issue)
end
project.del_project_issue_cache_delete_count # 把缓存里存储项目删除issue的个数清除掉
# 新增时向grimoirelab推送事件
IssueWebhookJob.set(wait: 5.seconds).perform_later(@created_issue.id)
IssueWebhookJob.set(wait: 5.seconds).perform_later(@created_issue.id) unless @project.id.zero?
# @信息发送
AtmeService.call(current_user, @atme_receivers, @created_issue) unless receivers_login.blank?