|
|
|
@ -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?
|
|
|
|
|