mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
修复
This commit is contained in:
@@ -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' # 我负责的
|
||||
|
||||
Reference in New Issue
Block a user