From 847f422ce518bc7999112d9f49ecca8933e27da5 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 7 Feb 2020 23:35:24 +0800 Subject: [PATCH] 1 --- app/services/videos/batch_publish_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/videos/batch_publish_service.rb b/app/services/videos/batch_publish_service.rb index e1c9f696d..24ec23600 100644 --- a/app/services/videos/batch_publish_service.rb +++ b/app/services/videos/batch_publish_service.rb @@ -11,6 +11,7 @@ class Videos::BatchPublishService < ApplicationService def call video_params = Array.wrap(params[:videos]).compact return if video_params.blank? + Rails.logger.info("#####video_course: #{video_params}") video_ids = [] ActiveRecord::Base.transaction do @@ -28,7 +29,6 @@ class Videos::BatchPublishService < ApplicationService video_ids << video.id - Rails.logger.info("#####video_course: #{params[:course_id]}") # 如果是课堂上传则创建课堂记录 if params[:course_id].present? video.course_videos.create!(course_id: params[:course_id])