diff --git a/app/services/videos/batch_publish_service.rb b/app/services/videos/batch_publish_service.rb index e435b9508..95de6930e 100644 --- a/app/services/videos/batch_publish_service.rb +++ b/app/services/videos/batch_publish_service.rb @@ -9,12 +9,12 @@ class Videos::BatchPublishService < ApplicationService end def call - video_params = Array.wrap(params[:videos]).compact + video_params = Array.wrap().compact return if video_params.blank? video_ids = [] ActiveRecord::Base.transaction do - video_params.each do |param| + video_params.each do |param|params[:videos] video = user.videos.find_by(uuid: param[:video_id]) next if video.blank? || video.processing_video_apply.present? diff --git a/config/routes.rb b/config/routes.rb index c39356cb2..0463469df 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -970,6 +970,10 @@ Rails.application.routes.draw do resources :carousels, only: [:index, :create, :update, :destroy] do post :drag, on: :collection end + resources :laboratories, only: [:index, :create, :destroy] do + resource :laboratory_setting, only: [:show, :update] + resource :laboratory_user, only: [:create, :destroy] + end end resources :colleges, only: [] do