|
|
|
@@ -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' |
|
|
|
|