更改:声明消息用户

This commit is contained in:
yystopf 2023-03-15 10:30:02 +08:00
parent fca06c9816
commit 7bda0fd126
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class SendTemplateMessageJob < ApplicationJob
operator = User.find_by_id(operator_id)
issue = Issue.find_by_id(issue_id)
return unless operator.present? && issue.present?
receivers = User.where(id: issue.author_id).where.not(id: operator&.id)
receivers = User.where(id: issue.claim_users.pluck(:id).append(issue.author_id)).where.not(id: operator&.id)
receivers_string, content, notification_url = MessageTemplate::IssueClaim.get_message_content(receivers, operator, issue)
Notice::Write::CreateService.call(receivers_string, content, notification_url, source, {operator_id: operator.id, issue_id: issue.id})
when 'IssueExpire'