课程发布的视频弄在发布中

Adjustreact
daiao 5 years ago
parent 62f727e17b
commit ae062a4973

@ -25,7 +25,9 @@ class Videos::BatchPublishService < ApplicationService
video.title = param[:title].to_s.strip.presence || video.title
video.apply_publish
if param[:course_id].present?
video.status = "published"
end
video.save!
if param[:course_id].present?

Loading…
Cancel
Save