Skip to content

Commit 1490e69

Browse files
committed
Return project status and unread feedback count
1 parent 003712f commit 1490e69

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/views/api/lessons/student_index.json.jbuilder

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
json.array!(@lessons_with_users_and_remixes) do |lesson_with_user, remix|
44
lesson, user = lesson_with_user
55
json.partial! 'lesson', lesson: lesson, user: user
6+
json.status(lesson.project&.school_project&.status)
7+
json.unread_feedback_count(remix&.school_project&.feedback&.where(read_at: nil)&.count || 0)
68
json.remix_identifier(remix.identifier) if remix.present?
79
end

0 commit comments

Comments
 (0)