json.video do
  json.videoUrl @video.url
  json.partial! 'watch_next_video_url', locals: { next_video: @video.next_video }
  json.sessionId @session.try(:id)
end

json.discussion do
  json.partial! 'course/video/topics/topics', locals: { topics: @topics }
  json.partial! 'course/video/topics/posts', locals: { posts: @posts }
  json.scrolling do
    json.scrollTopicId @scroll_topic_id
  end
end

json.video do
  json.videoUrl @video.url
  json.partial! 'watch_next_video_url', locals: { next_video: @video.next_video }
  json.sessionId @session&.id&.to_s
end

json.discussion do
  json.partial! 'course/video/topics/topics', locals: { topics: @topics }
  json.partial! 'course/video/topics/posts', locals: { posts: @posts }
  json.scrolling do
    json.scrollTopicId @scroll_topic_id
  end
end

Change session Id to string
Change session Id to string

Signed-off-by: Shen Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>
