@ -162,7 +162,7 @@ class Course < ApplicationRecord
def videos_count
course_videos.where(video_id: videos.where("transcoded = 1 or videos.user_id = #{User.current.id}").pluck(:id))
.or(course_videos.where(course_videos: {is_link: true}))
.or(course_videos.where(course_videos: {is_link: true})).size
end
def teacher_group(user_id)