This commit is contained in:
parent
2e0b32f86b
commit
a30a3c56b6
|
@ -66,7 +66,7 @@ class Api::V1::Issues::Journals::CreateService < ApplicationService
|
|||
end
|
||||
|
||||
def build_atme_participants
|
||||
atme_receivers.each do |receiver|
|
||||
@atme_receivers.each do |receiver|
|
||||
@created_issue.issue_participants.new({participant_type: "atme", participant_id: receiver.id})
|
||||
end
|
||||
end
|
||||
|
|
|
@ -47,7 +47,7 @@ class Api::V1::Issues::Journals::UpdateService < ApplicationService
|
|||
private
|
||||
|
||||
def build_atme_participants
|
||||
atme_receivers.each do |receiver|
|
||||
@atme_receivers.each do |receiver|
|
||||
@created_issue.issue_participants.new({participant_type: "atme", participant_id: receiver.id})
|
||||
end
|
||||
end
|
||||
|
|
|
@ -43,7 +43,7 @@ class Api::V1::Issues::ListService < ApplicationService
|
|||
|
||||
case participant_category
|
||||
when 'aboutme' # 关于我的
|
||||
issues = issues.joins(:issue_participants).where(issue_participants: {participant_type: %(authored assigned atme), participant_id: current_user&.id})
|
||||
issues = issues.joins(:issue_participants).where(issue_participants: {participant_type: %w(authored assigned atme), participant_id: current_user&.id})
|
||||
when 'authoredme' # 我创建的
|
||||
issues = issues.joins(:issue_participants).where(issue_participants: {participant_type: 'authored', participant_id: current_user&.id})
|
||||
when 'assignedme' # 我负责的
|
||||
|
|
Loading…
Reference in New Issue