Skip to content

Commit

Permalink
[B] Update journal_issues_nav in project serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
1aurend authored and zdavis committed Dec 13, 2023
1 parent 9462ca6 commit 1c5be68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/app/serializers/v1/concerns/project_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ module ProjectSerializer
id: Types::Serializer::ID,
label: Types::String
)
).meta(read_only: true).optional
).meta(read_only: true).optional do |object, params|
journal = object.journal
journal.issues_nav(user: params[:current_user]) if journal.present?
end
end
end

Expand Down

0 comments on commit 1c5be68

Please sign in to comment.