Browse Source

更改:声明消息用户

pull/343/head
yystopf 3 years ago
parent
commit
7bda0fd126
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/jobs/send_template_message_job.rb

+ 1
- 1
app/jobs/send_template_message_job.rb 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'


Loading…
Cancel
Save