|
|
|
@@ -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' # 我负责的 |
|
|
|
|