@ -22,11 +22,7 @@ class Videos::BatchPublishService < ApplicationService
raise Error, '视频还未上传完成' if video.vod_uploading?
video.title = param[:title].to_s.strip.presence || video.title
if param[:course_id].present?
video.apply_publish
video.publish
else
end
video.save!